summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES2
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2012-10-04 17:15:59 -0700
committerChet Haase <chet@google.com>2012-10-04 17:15:59 -0700
commit2da2c15068327a4fdad411f638905abcb2209d8a (patch)
tree7e3bbeec2ddda9f40c6a296fbd7ff27952e07289 /opengl/libs/GLES2
parent35387922bd3213ea4c376c7dcfb109da67a6a33e (diff)
downloadframeworks_native-2da2c15068327a4fdad411f638905abcb2209d8a.zip
frameworks_native-2da2c15068327a4fdad411f638905abcb2209d8a.tar.gz
frameworks_native-2da2c15068327a4fdad411f638905abcb2209d8a.tar.bz2
Add GL Error logs (temporary)
Adding logs to tell which specific methods throw OpenGL errors. Change-Id: I1d73c7566ed1ea6610392020411762c6255a0ede
Diffstat (limited to 'opengl/libs/GLES2')
-rw-r--r--opengl/libs/GLES2/gl2.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/opengl/libs/GLES2/gl2.cpp b/opengl/libs/GLES2/gl2.cpp
index 2d0045e..cd70ac8 100644
--- a/opengl/libs/GLES2/gl2.cpp
+++ b/opengl/libs/GLES2/gl2.cpp
@@ -44,10 +44,18 @@ using namespace android;
#undef CALL_GL_API
#undef CALL_GL_API_RETURN
+#ifdef IS_MANTA
+#define DEBUG_CALL_GL_API 1
+#else
#define DEBUG_CALL_GL_API 0
+#endif
#define DEBUG_PRINT_CALL_STACK_ON_ERROR 0
#define SYSTRACE_CALL_GL_API 0
+#ifdef IS_MANTA
+#undef USE_FAST_TLS_KEY
+#endif
+
#if USE_FAST_TLS_KEY
#ifdef HAVE_ARM_TLS_REGISTER
@@ -91,7 +99,7 @@ using namespace android;
GLenum status = GL_NO_ERROR; \
bool error = false; \
while ((status = glGetError()) != GL_NO_ERROR) { \
- ALOGD("[" #_api "] 0x%x", status); \
+ ALOGD("GL Error: [" #_api "] 0x%x", status); \
error = true; \
} \
if (DEBUG_PRINT_CALL_STACK_ON_ERROR && error) { \