Skip to content

Commit a97bf6a

Browse files
committed
xrRenderDX11/dx11HW.cpp: fixed wrong error check
Fixes 5b0085c
1 parent 453dfbb commit a97bf6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Layers/xrRenderDX11/dx11HW.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ bool CHW::CreateSwapChain2(HWND hwnd)
359359
if (FAILED(result))
360360
return false;
361361

362-
if (!swapchain->GetDesc(&m_ChainDesc))
362+
if (FAILED(swapchain->GetDesc(&m_ChainDesc)))
363363
{
364364
_RELEASE(swapchain);
365365
return false;

0 commit comments

Comments
 (0)