summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2013-08-26 19:02:11 +1000
committerBrian Paul <[email protected]>2013-09-04 07:47:49 -0600
commitb5c4795f386976830370f56d1fa5a1c4099d88e2 (patch)
tree2051f70d7f606244231760940b7f2856aa227dd9 /src/mesa/main/errors.c
parenta7f5eb8ebb953bb106c06cabb20a309cef392252 (diff)
mesa: Implement GL_DEBUG_OUTPUT
Signed-off-by: Timothy Arceri <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r--src/mesa/main/errors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index afe1affcf99..52fbadeb2dd 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -194,6 +194,9 @@ should_log(struct gl_context *ctx,
&ctx->Debug.Namespaces[gstack][source][type];
uintptr_t state;
+ if (!ctx->Debug.DebugOutput)
+ return GL_FALSE;
+
/* In addition to not being able to store zero as a value, HashTable also
can't use zero as a key. */
if (id)