Commit e73285de authored by Roman Sedaikin's avatar Roman Sedaikin

Initialized DirectXDevice.fenceEvent by NULL.

parent afff9452
...@@ -36,7 +36,7 @@ public: ...@@ -36,7 +36,7 @@ public:
gr_cp<IDXGISwapChain3> swapChain; gr_cp<IDXGISwapChain3> swapChain;
gr_cp<ID3D12CommandQueue> queue; gr_cp<ID3D12CommandQueue> queue;
gr_cp<ID3D12Fence> fence; gr_cp<ID3D12Fence> fence;
HANDLE fenceEvent; HANDLE fenceEvent = NULL;
uint64_t fenceValue; uint64_t fenceValue;
unsigned int bufferIndex = 1; unsigned int bufferIndex = 1;
unsigned int bufferWidth = 0; unsigned int bufferWidth = 0;
...@@ -48,9 +48,12 @@ public: ...@@ -48,9 +48,12 @@ public:
} }
~DirectXDevice() ~DirectXDevice()
{
if (fenceEvent != NULL)
{ {
CloseHandle(fenceEvent); 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