From 6c9c317cafdaefdec01389778fd96300022c37ab Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 28 Apr 2015 13:15:46 -0700 Subject: glsl: Add glsl_parser_state::has_atomic_counters helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2: Change GL version from 400 to 420. Noticed by Tapani and Ilia. Signed-off-by: Ian Romanick Reviewed-by: Tapani Pälli --- src/glsl/builtin_variables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/builtin_variables.cpp') diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index 21e7331c767..9d0b27209e7 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", -- cgit v1.2.3