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

Fix indentation and formatting in main.cpp

This commit is contained in:
o3o 2025-10-16 12:10:46 +08:00 committed by GitHub
parent 85676a1195
commit 9e36c77b73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,8 +261,10 @@ bool CreateDeviceD3D(HWND hWnd)
// - This must be done for all windows associated to the device. Our DX11 backend does this automatically for secondary viewports that it creates.
IDXGIFactory* pSwapChainFactory;
if (SUCCEEDED(g_pSwapChain->GetParent(IID_PPV_ARGS(&pSwapChainFactory))))
{
pSwapChainFactory->MakeWindowAssociation(hWnd, DXGI_MWA_NO_ALT_ENTER);
pSwapChainFactory->Release();
pSwapChainFactory->Release();
}
CreateRenderTarget();
return true;