1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-02-08 04:40:09 +00:00

Release swap chain factory after making window association

This commit is contained in:
o3o 2025-10-16 11:31:24 +08:00 committed by GitHub
parent f5988de0d1
commit 91d57e81d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -251,6 +251,7 @@ bool CreateDeviceD3D(HWND hWnd)
IDXGIFactory* pSwapChainFactory;
if (SUCCEEDED(g_pSwapChain->GetParent(IID_PPV_ARGS(&pSwapChainFactory))))
pSwapChainFactory->MakeWindowAssociation(hWnd, DXGI_MWA_NO_ALT_ENTER);
pSwapChainFactory->Release();
CreateRenderTarget();
return true;