OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff5c4aa
)
log an error when eglCreateContext() fails in an inconsistant way
author
Mathias Agopian
<mathias@google.com>
Tue, 25 Sep 2012 00:57:48 +0000
(17:57 -0700)
committer
Mathias Agopian
<mathias@google.com>
Tue, 25 Sep 2012 00:57:48 +0000
(17:57 -0700)
this will help debugging bug:
7216919
Change-Id: I54ac65f20c5ed55cc93a5cbc5350fadfb0fcb804
opengl/libs/EGL/eglApi.cpp
patch
|
blob
|
history
diff --git
a/opengl/libs/EGL/eglApi.cpp
b/opengl/libs/EGL/eglApi.cpp
index
91b4567
..
92023ba
100644
(file)
--- 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;