From 039857520b1a03a52051b966d87d587225bdfcc3 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 11 Jul 2011 15:33:51 -0700 Subject: Always make GL calls with a valid EGL context. Bug #5010760 Change-Id: If7500ef69683948e727df1406f458f18b11259d1 --- opengl/libs/EGL/egl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opengl') 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 #include +#include #include #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; } -- cgit v1.1