Commit 8106e870 by baustin@google.com

Handle additional lost device error codes that may be returned when using IDirect3DDevice9Ex.

Review URL: http://codereview.appspot.com/4529113 git-svn-id: https://angleproject.googlecode.com/svn/trunk@671 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 2475f02e
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 670
#define BUILD_REVISION 671
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -343,7 +343,7 @@ bool Surface::swap()
return error(EGL_BAD_ALLOC, false);
}
if (result == D3DERR_DEVICELOST)
if (result == D3DERR_DEVICELOST || result == D3DERR_DEVICEHUNG || result == D3DERR_DEVICEREMOVED)
{
return error(EGL_CONTEXT_LOST, 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