diff options
author | Mathias Agopian <mathias@google.com> | 2012-09-24 17:57:48 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-09-24 17:57:48 -0700 |
commit | 500407a2c07ced40c36e7356574a47bcec9c2fd9 (patch) | |
tree | f36491ed83e510b90faac20da2983823cca1d548 /opengl | |
parent | ff5c4aa676d157f4911ef06e328e687725e8b9f9 (diff) | |
download | frameworks_native-500407a2c07ced40c36e7356574a47bcec9c2fd9.zip frameworks_native-500407a2c07ced40c36e7356574a47bcec9c2fd9.tar.gz frameworks_native-500407a2c07ced40c36e7356574a47bcec9c2fd9.tar.bz2 |
log an error when eglCreateContext() fails in an inconsistant way
this will help debugging bug: 7216919
Change-Id: I54ac65f20c5ed55cc93a5cbc5350fadfb0fcb804
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 91b4567..92023ba 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -416,6 +416,12 @@ EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, GLTrace_eglCreateContext(version, c); #endif return c; + } else { + EGLint error = eglGetError(); + ALOGE_IF(error == EGL_SUCCESS, + "eglCreateContext(%p, %p, %p, %p) returned EGL_NO_CONTEXT " + "but no EGL error!", + dpy, config, share_list, attrib_list); } } return EGL_NO_CONTEXT; |