diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-07-07 11:47:22 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-07-12 18:18:48 -0700 |
commit | 8f51d68f8c2020ad35b442c4af693ad7a5e5dd0d (patch) | |
tree | 45f8e96c92610c48919a9f2a31f6d3295c06f94c /src/glsl | |
parent | 06b38dbab287026625de302e80e9806db206c43e (diff) | |
download | external_mesa3d-8f51d68f8c2020ad35b442c4af693ad7a5e5dd0d.zip external_mesa3d-8f51d68f8c2020ad35b442c4af693ad7a5e5dd0d.tar.gz external_mesa3d-8f51d68f8c2020ad35b442c4af693ad7a5e5dd0d.tar.bz2 |
glsl ES: Fix magnitude of gl_MaxVertexUniformVectors.
Previously, we set it equal to MaxVertexUniformComponents. It should
be MaxVertexUniformComponents / 4.
NOTE: This is a candidate for the stable branches.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/builtin_variables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index f4ac205..58019c6 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -533,7 +533,7 @@ generate_common_ES_uniforms(exec_list *instructions, add_builtin_constant(instructions, symtab, "gl_MaxVertexAttribs", state->Const.MaxVertexAttribs); add_builtin_constant(instructions, symtab, "gl_MaxVertexUniformVectors", - state->Const.MaxVertexUniformComponents); + state->Const.MaxVertexUniformComponents / 4); add_builtin_constant(instructions, symtab, "gl_MaxVertexTextureImageUnits", state->Const.MaxVertexTextureImageUnits); add_builtin_constant(instructions, symtab, "gl_MaxCombinedTextureImageUnits", |