mirror of https://github.com/snes9xgit/snes9x.git
win32: do not try to reset device if minimized
This commit is contained in:
parent
d441856303
commit
382a17ad1c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue