am ecb7c06f: am 321714ab: Merge "opengles emulator: fix eglGetError"

* commit 'ecb7c06ff4a670ea473ac053aaa9c0f99f4e0bf6':
  opengles emulator: fix eglGetError
This commit is contained in:
David Turner
2011-08-09 10:05:46 -07:00
committed by Android Git Automerger

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)