Revert the change to treat S_PRESENT_MODE_CHANGED always as device lost on D3D9.

See: https://codereview.appspot.com/7398052/ TRAC #22492 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1957 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent e16e651f
......@@ -2085,14 +2085,12 @@ bool Renderer9::testDeviceResettable()
}
// On D3D9Ex, DEVICELOST represents a hung device that needs to be restarted
// On some systems, they return S_PRESENT_MODE_CHANGED
// DEVICEREMOVED indicates the device has been stopped and must be recreated
switch (status)
{
case D3DERR_DEVICENOTRESET:
case D3DERR_DEVICEHUNG:
return true;
case S_PRESENT_MODE_CHANGED:
case D3DERR_DEVICELOST:
return (mDeviceEx != NULL);
case D3DERR_DEVICEREMOVED:
......
......@@ -63,7 +63,6 @@ inline bool isDeviceLostError(HRESULT errorCode)
case D3DERR_DEVICELOST:
case D3DERR_DEVICEHUNG:
case D3DERR_DEVICEREMOVED:
case S_PRESENT_MODE_CHANGED:
return true;
default:
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment