X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Ffinalize.cpp;h=030cb432a4a0c835b2485773ffa8b92fb36b705d;hb=9c1035c136c7c78f0cbf0205ec48befc49219de7;hp=55f7b82e5ed107aae78042d4bacc2204accc5945;hpb=7a41f6dcc1339a4a2dda2207b6b051f20c09a239;p=libs%2Fgl.git diff --git a/source/glsl/finalize.cpp b/source/glsl/finalize.cpp index 55f7b82e..030cb432 100644 --- a/source/glsl/finalize.cpp +++ b/source/glsl/finalize.cpp @@ -91,6 +91,7 @@ void LegacyConverter::apply(Stage &s, const Features &feat) if(supports_stage(s.type)) { s.content.visit(*this); + NodeRemover().apply(s, nodes_to_remove); if(!stage->required_features.glsl_version) stage->required_features.glsl_version = Version(1, (stage->required_features.gl_api==OPENGL_ES2 ? 0 : 10)); @@ -227,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