From ccfa5c3364a88b0acdbe555b210bd2bc9feb6285 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 1 Sep 2011 14:55:00 -0700 Subject: [PATCH] this should fix the GL debugger we were checking against to the wrong variable Change-Id: Iff3f5ab2d6ba5ac0d3d8161011b38e673ee7e67b --- opengl/libs/EGL/egl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index ddad2d323..ca6290872 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -95,12 +95,12 @@ void initEglTraceLevel() { if (fgets(cmdline, sizeof(cmdline) - 1, file)) { if (!strcmp(value, cmdline)) - sEGLTraceLevel = 1; + gEGLDebugLevel = 1; } fclose(file); } - if (sEGLTraceLevel > 0) + if (gEGLDebugLevel > 0) { property_get("debug.egl.debug_port", value, "5039"); const unsigned short port = (unsigned short)atoi(value); @@ -117,7 +117,7 @@ void setGLHooksThreadSpecific(gl_hooks_t const *value) { if (sEGLTraceLevel > 0) { setGlTraceThreadSpecific(value); setGlThreadSpecific(&gHooksTrace); - } else if (sEGLTraceLevel > 0 && value != &gHooksNoContext) { + } else if (gEGLDebugLevel > 0 && value != &gHooksNoContext) { setGlTraceThreadSpecific(value); setGlThreadSpecific(&gHooksDebug); } else {