diff options
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r-- | src/mesa/main/errors.c | 3 |
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) |