mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-13 02:43:54 +08:00
Free DX12 devices on destroy
This commit is contained in:
parent
121df0ef39
commit
1edbdd8a35
@ -247,6 +247,13 @@ DX12_Hook::~DX12_Hook()
|
||||
|
||||
if (initialized)
|
||||
{
|
||||
pSrvDescHeap->Release();
|
||||
for (UINT i = 0; i < bufferCount; ++i)
|
||||
pCmdAlloc[i]->Release();
|
||||
pRtvDescHeap->Release();
|
||||
delete[]pMainRenderTargets;
|
||||
delete[]pCmdAlloc;
|
||||
|
||||
ImGui_ImplDX12_InvalidateDeviceObjects();
|
||||
ImGui::DestroyContext();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user