Merge "fix logging of eglMakeCurrent() errors"

This commit is contained in:
Mathias Agopian 2011-08-25 18:40:31 -07:00 committed by Android (Google) Code Review
commit b2c13e3e86

View File

@ -675,6 +675,9 @@ EGLBoolean eglMakeCurrent( EGLDisplay dpy, EGLSurface draw,
setGLHooksThreadSpecific(&gHooksNoContext);
egl_tls_t::setContext(EGL_NO_CONTEXT);
}
} else {
// this will LOGE the error
result = setError(c->cnx->egl.eglGetError(), EGL_FALSE);
}
return result;
}