From: Mikko Rasa Date: Wed, 31 Mar 2021 21:20:51 +0000 (+0300) Subject: Fix layout processing for old GLSL versions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9c1035c136c7c78f0cbf0205ec48befc49219de7;p=libs%2Fgl.git 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. --- 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