1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Release swap chain factory after window association

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

View file

@ -257,6 +257,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;