mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] dxgi: fixed reversed logic for fallback
This commit is contained in:
parent
037ea5b1fc
commit
263b412fdf
@ -332,6 +332,11 @@ bool DXGI::Initialize(CaptureOptions * options)
|
||||
IDXGIOutput1Ptr output1 = m_output;
|
||||
if (!output1)
|
||||
{
|
||||
DEBUG_ERROR("Failed to get IDXGIOutput1");
|
||||
DeInitialize();
|
||||
return false;
|
||||
}
|
||||
|
||||
// we try this twice in case we still get an error on re-initialization
|
||||
for (int i = 0; i < 2; ++i)
|
||||
{
|
||||
@ -348,7 +353,6 @@ bool DXGI::Initialize(CaptureOptions * options)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DXGI_OUTDUPL_DESC dupDesc;
|
||||
m_dup->GetDesc(&dupDesc);
|
||||
|
Loading…
Reference in New Issue
Block a user