projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80701d
)
mesa: add a missing GS support check in GetActiveUniformBlockiv
author
Marek Olšák
<marek.olsak@amd.com>
Sat, 21 Feb 2015 23:33:03 +0000
(
00:33
+0100)
committer
Marek 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/uniforms.c
b/src/mesa/main/uniforms.c
index e471b878ce6aeff5b76f4aa3673586c7aaf4135b..4bb3dfbcd94188680d957eb3371f9e6056f3fb63 100644
(file)
--- 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;