Commit afff9452 authored by Roman Sedaikin's avatar Roman Sedaikin

Added destructor of DirectXDevice.

parent f8a2c387
#ifdef SK_DIRECT3D #ifdef SK_DIRECT3D
#include <stdexcept> #include <stdexcept>
#include <windows.h> #include <Windows.h>
#include <jawt_md.h> #include <jawt_md.h>
#include "jni_helpers.h" #include "jni_helpers.h"
...@@ -46,6 +46,11 @@ public: ...@@ -46,6 +46,11 @@ public:
{ {
return width == bufferWidth && height == bufferHeight; return width == bufferWidth && height == bufferHeight;
} }
~DirectXDevice()
{
CloseHandle(fenceEvent);
}
}; };
extern "C" extern "C"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment