[Mesa-dev] [Bug 93731] glUniformSubroutinesuiv segfaults when subroutine uniform is bound to a specific location

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 17 16:55:23 PST 2016


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

Timothy Arceri <t_arceri at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Timothy Arceri <t_arceri at yahoo.com.au> ---
Should be fixed by:

commit    86677f101641c75d52577e3cd9e76441b1228b21

mesa: fix segfault in glUniformSubroutinesuiv()
>From Section 7.9 (SUBROUTINE UNIFORM VARIABLES) of the OpenGL
4.5 Core spec:

   "The command

       void UniformSubroutinesuiv(enum shadertype, sizei count,
                                  const uint *indices);

   will load all active subroutine uniforms for shader stage
   shadertype with subroutine indices from indices, storing
   indices[i] into the uniform at location i. The indices for
   any locations between zero and the value of
   ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS minus one which are not
   used will be ignored."

V2: simplify NULL check suggested by Jason.

Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Dave Airlie <airlied at redhat.com>
Cc: "11.0 11.1" mesa-stable at lists.freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=93731

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20160118/d0a9b0a5/attachment.html>


More information about the mesa-dev mailing list