summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-07-11 15:33:51 -0700
committerRomain Guy <romainguy@google.com>2011-07-11 15:33:51 -0700
commit039857520b1a03a52051b966d87d587225bdfcc3 (patch)
tree1c37c30821d896b2b831f4324219926ca039a801 /opengl
parentaa695940327f3d4dd48f29fd1c099b5f7f9fa23c (diff)
downloadframeworks_base-039857520b1a03a52051b966d87d587225bdfcc3.zip
frameworks_base-039857520b1a03a52051b966d87d587225bdfcc3.tar.gz
frameworks_base-039857520b1a03a52051b966d87d587225bdfcc3.tar.bz2
Always make GL calls with a valid EGL context.
Bug #5010760 Change-Id: If7500ef69683948e727df1406f458f18b11259d1
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 b11db32..ddad2d3 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -31,6 +31,7 @@
#include <cutils/properties.h>
#include <cutils/memory.h>
+#include <utils/CallStack.h>
#include <utils/String8.h>
#include "egldefs.h"
@@ -147,6 +148,10 @@ static int gl_no_context() {
if (egl_tls_t::logNoContextCall()) {
LOGE("call to OpenGL ES API with no current context "
"(logged once per thread)");
+ LOGE("call stack before error:");
+ CallStack stack;
+ stack.update();
+ stack.dump();
}
return 0;
}