renderDX11: don't error on DXGI_STATUS_OCCLUDED

This commit is contained in:
tildearrow 2023-07-02 02:13:50 -05:00
parent c40cc8283f
commit d4c136c525
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ void FurnaceGUIRenderDX11::present() {
HRESULT result=swapchain->Present(1,0);
if (result==DXGI_ERROR_DEVICE_REMOVED || result==DXGI_ERROR_DEVICE_RESET) {
dead=true;
} else if (result!=S_OK) {
} else if (result!=S_OK && result!=DXGI_STATUS_OCCLUDED) {
logE("DX11: present failed! %.8x",result);
}
}