summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-08-25 18:38:24 -0700
committerMathias Agopian <mathias@google.com>2011-08-25 18:38:24 -0700
commit5fecea776a5f093c21ac1a0ad3552b847d4be23e (patch)
treeecf3a9e717071d723e37f00b852190834a43c325 /opengl
parent70e3f81d0fbc92394928c44fb0137787a8595665 (diff)
downloadframeworks_native-5fecea776a5f093c21ac1a0ad3552b847d4be23e.zip
frameworks_native-5fecea776a5f093c21ac1a0ad3552b847d4be23e.tar.gz
frameworks_native-5fecea776a5f093c21ac1a0ad3552b847d4be23e.tar.bz2
fix logging of eglMakeCurrent() errors
Change-Id: Ie22cabff822a8fb3186f082491234b9503b431c3
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/eglApi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 1f0016a..7e85230 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;
}