Fix error reporting for lost contexts
Trac #19246
Issue=262
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@906 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/libGLESv2.cpp b/src/libGLESv2/libGLESv2.cpp
index bad6f41..30055bb 100644
--- a/src/libGLESv2/libGLESv2.cpp
+++ b/src/libGLESv2/libGLESv2.cpp
@@ -2707,10 +2707,7 @@
if (context)
{
- if (context->isContextLost())
- return GL_OUT_OF_MEMORY;
- else
- return context->getError();
+ return context->getError();
}
return GL_NO_ERROR;