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:
parent
e1b27ce51e
commit
f5988de0d1
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue