am 500407a2: log an error when eglCreateContext() fails in an inconsistant way

* commit '500407a2c07ced40c36e7356574a47bcec9c2fd9':
  log an error when eglCreateContext() fails in an inconsistant way
This commit is contained in:
Mathias Agopian 2012-09-24 18:09:21 -07:00 committed by Android Git Automerger
commit 0d45d71197

View File

@ -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;