https://bugs.freedesktop.org/show_bug.cgi?id=102530

--- Comment #9 from Timothy Arceri <t_arc...@yahoo.com.au> ---
(In reply to Erik Faye-Lund from comment #8)
> Something like this?
> 
> ---8<---
> 
> diff --git a/src/mesa/main/uniform_query.cpp
> b/src/mesa/main/uniform_query.cpp
> index c6488325a8..642c93270f 100644
> --- a/src/mesa/main/uniform_query.cpp
> +++ b/src/mesa/main/uniform_query.cpp
> @@ -911,6 +911,9 @@ _mesa_uniform(GLint location, GLsizei count, const
> GLvoid *values,
>  
>     struct gl_uniform_storage *uni;
>     if (_mesa_is_no_error_enabled(ctx)) {
> +      if (location == -1)
> +         return;
> +
>        uni = shProg->UniformRemapTable[location];
>  
>        /* The array index specified by the uniform location is just the
> 
> ---8<---

This was already fixed.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to