summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_variables.cpp
diff options
context:
space:
mode:
authorMaxence Le Doré <maxence.ledore@gmail.com>2014-12-10 08:09:24 +0100
committerMatt Turner <mattst88@gmail.com>2014-12-15 12:20:00 -0800
commit19e05d68986690cfcdd49de6cfb87d88ad54cd58 (patch)
tree42fe52d1fffb3b9d529a61c38d071f2d23247c56 /src/glsl/builtin_variables.cpp
parent8517e665bc4c378e8e7523827090fd1b06abaecd (diff)
downloadexternal_mesa3d-19e05d68986690cfcdd49de6cfb87d88ad54cd58.zip
external_mesa3d-19e05d68986690cfcdd49de6cfb87d88ad54cd58.tar.gz
external_mesa3d-19e05d68986690cfcdd49de6cfb87d88ad54cd58.tar.bz2
glsl: Add gl_MaxViewports to available builtin constants
It seems to have been forgotten during viewports array implementation time. Cc: "10.4 10.3" <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/builtin_variables.cpp')
-rw-r--r--src/glsl/builtin_variables.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index c36d198..65e32ad 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -724,6 +724,10 @@ builtin_variable_generator::generate_constants()
add_const("gl_MaxCombinedImageUniforms",
state->Const.MaxCombinedImageUniforms);
}
+
+ if (state->is_version(410, 0) ||
+ state->ARB_viewport_array_enable)
+ add_const("gl_MaxViewports", state->Const.MaxViewports);
}