* commit 'ecb7c06ff4a670ea473ac053aaa9c0f99f4e0bf6': opengles emulator: fix eglGetError
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user