From 9c1035c136c7c78f0cbf0205ec48befc49219de7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 1 Apr 2021 00:20:51 +0300 Subject: [PATCH] Fix layout processing for old GLSL versions layout(location) is not supported in 1.10 and 1.20, even with the ARB_explicit_attrib_location extension. --- source/glsl/finalize.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/glsl/finalize.cpp b/source/glsl/finalize.cpp index b8c3378c..030cb432 100644 --- a/source/glsl/finalize.cpp +++ b/source/glsl/finalize.cpp @@ -228,8 +228,10 @@ bool LegacyConverter::supports_interface_layouts() const return check_version(Version(3, 0)); else if(check_version(Version(3, 30))) return true; - else + else if(check_version(Version(1, 30))) return check_extension(&Features::arb_explicit_attrib_location); + else + return false; } bool LegacyConverter::supports_centroid_sampling() const -- 2.45.2