From 5fecea776a5f093c21ac1a0ad3552b847d4be23e Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 25 Aug 2011 18:38:24 -0700 Subject: [PATCH] fix logging of eglMakeCurrent() errors Change-Id: Ie22cabff822a8fb3186f082491234b9503b431c3 --- opengl/libs/EGL/eglApi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 1f0016ab1..7e8523031 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -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; }