From 002aa7502245805def2fd9bb1bc83284019757fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 22 Feb 2015 00:33:03 +0100 Subject: [PATCH] mesa: add a missing GS support check in GetActiveUniformBlockiv Reviewed-by: Ian Romanick --- src/mesa/main/uniforms.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2