summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_variables.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-04-28 13:15:46 -0700
committerIan Romanick <ian.d.romanick@intel.com>2015-05-04 13:49:58 -0700
commit6c9c317cafdaefdec01389778fd96300022c37ab (patch)
tree140c89290efbb9c6f8773f03dffa277707158f6b /src/glsl/builtin_variables.cpp
parentfa3475b26931fceeeda7ee7f5ffa61927aacaafb (diff)
downloadexternal_mesa3d-6c9c317cafdaefdec01389778fd96300022c37ab.zip
external_mesa3d-6c9c317cafdaefdec01389778fd96300022c37ab.tar.gz
external_mesa3d-6c9c317cafdaefdec01389778fd96300022c37ab.tar.bz2
glsl: Add glsl_parser_state::has_atomic_counters helper
v2: Change GL version from 400 to 420. Noticed by Tapani and Ilia. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'src/glsl/builtin_variables.cpp')
-rw-r--r--src/glsl/builtin_variables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index 21e7331..9d0b272 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -653,7 +653,7 @@ builtin_variable_generator::generate_constants()
add_const("gl_MaxTextureCoords", state->Const.MaxTextureCoords);
}
- if (state->ARB_shader_atomic_counters_enable) {
+ if (state->has_atomic_counters()) {
add_const("gl_MaxVertexAtomicCounters",
state->Const.MaxVertexAtomicCounters);
add_const("gl_MaxGeometryAtomicCounters",