aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-28 21:16:31 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-28 21:16:31 +0000
commitd5d10494e34ee739eac45b2297b7bd61caae5109 (patch)
treee3588eea281076428cafcd94802c94e599a9d21b /gpu
parent0533971c5f54c63d471c2b93f0d0b47119bff85a (diff)
Only define debugging GL globals when the code paths are enabled
git-svn-id: http://skia.googlecode.com/svn/trunk@1212 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu')
-rw-r--r--gpu/src/GrGLUtil.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/gpu/src/GrGLUtil.cpp b/gpu/src/GrGLUtil.cpp
index 5234453a10..04e25fd378 100644
--- a/gpu/src/GrGLUtil.cpp
+++ b/gpu/src/GrGLUtil.cpp
@@ -43,6 +43,11 @@ void GrGLRestoreResetRowLength() {
///////////////////////////////////////////////////////////////////////////////
-bool gLogCallsGL = !!(GR_GL_LOG_CALLS_START);
+#if GR_GL_LOG_CALLS
+ bool gLogCallsGL = !!(GR_GL_LOG_CALLS_START);
+#endif
+
+#if GR_GL_CHECK_ERROR
+ bool gCheckErrorGL = !!(GR_GL_CHECK_ERROR_START);
+#endif
-bool gCheckErrorGL = !!(GR_GL_CHECK_ERROR_START);