win32: do not try to reset device if minimized

This commit is contained in:
OV2 2017-06-04 22:17:58 +02:00
parent d441856303
commit 382a17ad1c
1 changed files with 2 additions and 1 deletions

View File

@ -647,7 +647,8 @@ void CDirect3D::Render(SSurface Src)
case D3DERR_DEVICELOST: //do no rendering until device is restored
return;
case D3DERR_DEVICENOTRESET: //we can reset now
ResetDevice();
if(!IsIconic(dPresentParams.hDeviceWindow))
ResetDevice();
return;
default:
DXTRACE_ERR_MSGBOX(TEXT("Internal driver error"), hr);