summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/builtin_functions.cpp
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-02-14 20:12:51 +0100
committerMarek Olšák <[email protected]>2018-02-23 20:50:15 +0100
commit605a7f6db51cb946eed508bc9a7adfa753c75e10 (patch)
tree7921ee566f94e6a1ec40930a90c5cef570d94101 /src/compiler/glsl/builtin_functions.cpp
parent14a2c87c41946794a4ea4870a160b70c01225c4f (diff)
mesa: implement ARB_compatibility
Tested-by: Dieter Nützel <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/compiler/glsl/builtin_functions.cpp')
-rw-r--r--src/compiler/glsl/builtin_functions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index 293e8bd638f..5f772c9eaba 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -104,7 +104,7 @@ static bool
compatibility_vs_only(const _mesa_glsl_parse_state *state)
{
return state->stage == MESA_SHADER_VERTEX &&
- state->language_version <= 130 &&
+ (state->compat_shader || state->ARB_compatibility_enable) &&
!state->es_shader;
}