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

* commit '321714abd24dfcd5e222b2b7c21780f558d9e5c9':
  opengles emulator: fix eglGetError
This commit is contained in:
David Turner
2011-08-09 08:35:37 -07:00
committed by Android Git Automerger

View File

@@ -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)