Mesa (master): mesa: add a missing GS support check in GetActiveUniformBlockiv

Marek Olšák mareko at kemper.freedesktop.org
Tue Feb 24 20:26:24 UTC 2015


Module: Mesa
Branch: master
Commit: 002aa7502245805def2fd9bb1bc83284019757fe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=002aa7502245805def2fd9bb1bc83284019757fe

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Feb 22 00:33:03 2015 +0100

mesa: add a missing GS support check in GetActiveUniformBlockiv

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 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 e471b87..4bb3dfb 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;
 




More information about the mesa-commit mailing list