diff --git a/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp b/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp index 00d3860..6225d42 100644 --- a/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp +++ b/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp @@ -102,6 +102,10 @@ bool InitSwapChainForWindow(HWND hWnd, ID3D11Device *device, GpComPtrMakeWindowAssociation(hWnd, DXGI_MWA_NO_ALT_ENTER); + if (result != S_OK) + return false; + outSwapChain = swapChain; return true;