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

Release IDXGIFactory after making window association

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

View file

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