Module: Mesa
Branch: master
Commit: 078dd6a0b4135b5181eea538473fe53a9bc61223
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=078dd6a0b4135b5181eea538473fe53a9bc61223

Author: Emil Velikov <[email protected]>
Date:   Thu Nov 26 00:36:13 2015 +0000

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]>

---

 src/mesa/main/errors.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 88fc028..fda5a90 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");

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to