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:
committed by
David 'Digit' Turner
parent
39c53186b9
commit
8f887e6f08
@@ -571,7 +571,9 @@ EGLBoolean eglTerminate(EGLDisplay dpy)
|
|||||||
|
|
||||||
EGLint eglGetError()
|
EGLint eglGetError()
|
||||||
{
|
{
|
||||||
return getEGLThreadInfo()->eglError;
|
EGLint error = getEGLThreadInfo()->eglError;
|
||||||
|
getEGLThreadInfo()->eglError = EGL_SUCCESS;
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
__eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
|
__eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
|
||||||
|
|||||||
Reference in New Issue
Block a user