opengles emulator: fix eglGetError

eglGetError should set it's internal state to EGL_SUCCESS after every call

Change-Id: I55d1e5b2a03bae8b332c78e8179edd79c9e8e79e
This commit is contained in:
Stas Gurtovoy
2011-07-20 09:57:34 +03:00
committed by David 'Digit' Turner
parent 39c53186b9
commit 8f887e6f08

View File

@@ -571,7 +571,9 @@ EGLBoolean eglTerminate(EGLDisplay dpy)
EGLint eglGetError()
{
return getEGLThreadInfo()->eglError;
EGLint error = getEGLThreadInfo()->eglError;
getEGLThreadInfo()->eglError = EGL_SUCCESS;
return error;
}
__eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)