Some programs fatal error if SetFullscreenState fails :(. Lie instead

* A bit silly since this can fail for plenty of legit reasons and you could
  just fall back to windowed. So instead we'll just return S_OK and pretend
  everything went swimmingly
This commit is contained in:
baldurk
2014-09-06 11:42:30 +01:00
parent bfffc2110a
commit 490c9a1fcb
+1 -1
View File
@@ -233,7 +233,7 @@ HRESULT WrappedIDXGISwapChain::SetFullscreenState(
if(RenderDoc::Inst().GetCaptureOptions().AllowFullscreen)
return m_pReal->SetFullscreenState(Fullscreen, pTarget);
return DXGI_ERROR_NOT_CURRENTLY_AVAILABLE;
return S_OK;
}
HRESULT WrappedIDXGISwapChain::GetFullscreenState(