diff options
author | Timothy Arceri <[email protected]> | 2016-01-17 16:09:08 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-01-18 11:53:24 +1100 |
commit | 86677f101641c75d52577e3cd9e76441b1228b21 (patch) | |
tree | 3adc71d2476e503c6b49042edc9c0511baa9b2cc /src/glsl | |
parent | 50376e0c0e81f80cac6ec77da491241e4ccf57f0 (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Cc: "11.0 11.1" [email protected]
https://bugs.freedesktop.org/show_bug.cgi?id=93731
Diffstat (limited to 'src/glsl')
0 files changed, 0 insertions, 0 deletions