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

* commit '8713e3858c8868af8b89d1bad8b181f4570b3a1e':
  opengles emulator: fix eglGetError
This commit is contained in:
David Turner
2011-08-10 12:21:47 -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)