[Mesa-dev] [PATCH v2 4/8] mesa: return the correct value for GroupStackDepth

Ilia Mirkin imirkin at alum.mit.edu
Wed Nov 25 16:57:17 PST 2015


On Wed, Nov 25, 2015 at 7:36 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> We already have one group (the default) as specif iced in the spec. So

what's a "specif iced"? is that like iced tea?

> lets return its size, rather than the index of the current group.
>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  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 9504206..155d730 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");
> --
> 2.6.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list