mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-10 06:38:34 +01:00
Free DX12 devices on destroy
This commit is contained in:
parent
121df0ef39
commit
1edbdd8a35
1 changed files with 7 additions and 0 deletions
|
@ -247,6 +247,13 @@ DX12_Hook::~DX12_Hook()
|
||||||
|
|
||||||
if (initialized)
|
if (initialized)
|
||||||
{
|
{
|
||||||
|
pSrvDescHeap->Release();
|
||||||
|
for (UINT i = 0; i < bufferCount; ++i)
|
||||||
|
pCmdAlloc[i]->Release();
|
||||||
|
pRtvDescHeap->Release();
|
||||||
|
delete[]pMainRenderTargets;
|
||||||
|
delete[]pCmdAlloc;
|
||||||
|
|
||||||
ImGui_ImplDX12_InvalidateDeviceObjects();
|
ImGui_ImplDX12_InvalidateDeviceObjects();
|
||||||
ImGui::DestroyContext();
|
ImGui::DestroyContext();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue