diff options
author | Marek Olšák <[email protected]> | 2015-02-22 00:33:03 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-02-24 21:21:04 +0100 |
commit | 002aa7502245805def2fd9bb1bc83284019757fe (patch) | |
tree | 405f1b7329ab98c0830275f7213772ed6ba38586 | |
parent | d80701df8af4a5d74c4f4eb09a4b3cef6970104b (diff) |
mesa: add a missing GS support check in GetActiveUniformBlockiv
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/mesa/main/uniforms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index e471b878ce6..4bb3dfbcd94 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -1142,6 +1142,8 @@ _mesa_GetActiveUniformBlockiv(GLuint program, return; case GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER: + if (!_mesa_has_geometry_shaders(ctx)) + break; params[0] = shProg->UniformBlockStageIndex[MESA_SHADER_GEOMETRY][uniformBlockIndex] != -1; return; |