renderDX11: don't error on DXGI_STATUS_OCCLUDED
This commit is contained in:
parent
c40cc8283f
commit
d4c136c525
|
@ -349,7 +349,7 @@ void FurnaceGUIRenderDX11::present() {
|
||||||
HRESULT result=swapchain->Present(1,0);
|
HRESULT result=swapchain->Present(1,0);
|
||||||
if (result==DXGI_ERROR_DEVICE_REMOVED || result==DXGI_ERROR_DEVICE_RESET) {
|
if (result==DXGI_ERROR_DEVICE_REMOVED || result==DXGI_ERROR_DEVICE_RESET) {
|
||||||
dead=true;
|
dead=true;
|
||||||
} else if (result!=S_OK) {
|
} else if (result!=S_OK && result!=DXGI_STATUS_OCCLUDED) {
|
||||||
logE("DX11: present failed! %.8x",result);
|
logE("DX11: present failed! %.8x",result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue