diff options
-rw-r--r-- | src/compiler/glsl/builtin_variables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp index d8b6f6edf97..401c7136659 100644 --- a/src/compiler/glsl/builtin_variables.cpp +++ b/src/compiler/glsl/builtin_variables.cpp @@ -622,7 +622,7 @@ builtin_variable_generator::generate_constants() /* Max uniforms/varyings: GLSL ES counts these in units of vectors; desktop * GL counts them in units of "components" or "floats". */ - if (state->es_shader) { + if (state->is_version(410, 100)) { add_const("gl_MaxVertexUniformVectors", state->Const.MaxVertexUniformComponents / 4); add_const("gl_MaxFragmentUniformVectors", |