mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user