Skip to content

Commit

Permalink
log an error when eglCreateContext() fails in an inconsistant way
Browse files Browse the repository at this point in the history
this will help debugging bug: 7216919

Change-Id: I54ac65f20c5ed55cc93a5cbc5350fadfb0fcb804
  • Loading branch information
pixelflinger committed Sep 25, 2012
1 parent ff5c4aa commit 500407a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opengl/libs/EGL/eglApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 500407a

Please sign in to comment.