summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-08-07 20:10:20 -0700
committerMathias Agopian <mathias@google.com>2013-08-08 16:38:06 -0700
commita6bb107434ad36739c21e1f72ac8d0107808a7b9 (patch)
tree8eeb40df019b998c12f5d3543bf215f5e53d044e /opengl
parent6c913be9ca95fd6b556d056e165a4ba6dc69795b (diff)
downloadframeworks_native-a6bb107434ad36739c21e1f72ac8d0107808a7b9.zip
frameworks_native-a6bb107434ad36739c21e1f72ac8d0107808a7b9.tar.gz
frameworks_native-a6bb107434ad36739c21e1f72ac8d0107808a7b9.tar.bz2
make sure we have a context when creating the 1st surface
also add an option to dump the stack trace when calling a GL function without a context. Change-Id: I57b72bb8c322ac4253c3077bf150621bd9863b69
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/egl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index 86637dc..f759e6b 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -331,6 +331,11 @@ EGLBoolean egl_init_drivers() {
void gl_unimplemented() {
ALOGE("called unimplemented OpenGL ES API");
+ char value[PROPERTY_VALUE_MAX];
+ property_get("debug.egl.callstack", value, "0");
+ if (atoi(value)) {
+ CallStack stack(LOG_TAG);
+ }
}
void gl_noop() {