diff options
author | Mathias Agopian <mathias@google.com> | 2012-09-24 18:09:21 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-09-24 18:09:21 -0700 |
commit | 0d45d711976bdca1165536b8948680680d38eb6a (patch) | |
tree | dcb560fb91b552b8a280e6b6d667e6c1bd8f2070 /opengl | |
parent | 81b316aa5395b6318ad4a10e1ed27d0b9b0df07f (diff) | |
parent | 500407a2c07ced40c36e7356574a47bcec9c2fd9 (diff) | |
download | frameworks_native-0d45d711976bdca1165536b8948680680d38eb6a.zip frameworks_native-0d45d711976bdca1165536b8948680680d38eb6a.tar.gz frameworks_native-0d45d711976bdca1165536b8948680680d38eb6a.tar.bz2 |
am 500407a2: log an error when eglCreateContext() fails in an inconsistant way
* commit '500407a2c07ced40c36e7356574a47bcec9c2fd9':
log an error when eglCreateContext() fails in an inconsistant way
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 f5a0202..4aed5b5 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; |