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