mesa: add a missing GS support check in GetActiveUniformBlockiv
authorMarek Olšák <marek.olsak@amd.com>
Sat, 21 Feb 2015 23:33:03 +0000 (00:33 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 24 Feb 2015 20:21:04 +0000 (21:21 +0100)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/uniforms.c

index e471b878ce6aeff5b76f4aa3673586c7aaf4135b..4bb3dfbcd94188680d957eb3371f9e6056f3fb63 100644 (file)
@@ -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;