diff options
-rw-r--r-- | src/mesa/main/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 88fc0283ed4..fda5a90bf5e 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -775,7 +775,7 @@ _mesa_get_debug_state_int(struct gl_context *ctx, GLenum pname) debug->Log.Messages[debug->Log.NextMessage].length : 0; break; case GL_DEBUG_GROUP_STACK_DEPTH: - val = debug->CurrentGroup; + val = debug->CurrentGroup + 1; break; default: assert(!"unknown debug output param"); |