]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix layout processing for old GLSL versions
authorMikko Rasa <tdb@tdb.fi>
Wed, 31 Mar 2021 21:20:51 +0000 (00:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 1 Apr 2021 19:29:06 +0000 (22:29 +0300)
layout(location) is not supported in 1.10 and 1.20, even with the
ARB_explicit_attrib_location extension.

source/glsl/finalize.cpp

index b8c3378cc5ee6e6ff010e3f7b65bde411468b6f6..030cb432a4a0c835b2485773ffa8b92fb36b705d 100644 (file)
@@ -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