summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-11-26 00:36:13 +0000
committerEmil Velikov <[email protected]>2015-12-04 16:37:06 +0000
commitdcaf3989d12602799b3d50d6068fe926509c911d (patch)
tree87704506380d8f53c7e94faf197c6492e83c101f /src/mesa/main
parent996a4958da7ae97efff4335cae857143d5119404 (diff)
mesa: return the correct value for GroupStackDepth
We already have one group (the default) as specified in the spec. So lets return its size, rather than the index of the current group. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> (cherry picked from commit 078dd6a0b4135b5181eea538473fe53a9bc61223)
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/errors.c2
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");