]> git.tdb.fi Git - libs/gl.git/commitdiff
Add missing NodeRemover invocation to LegacyConverter
authorMikko Rasa <tdb@tdb.fi>
Wed, 31 Mar 2021 21:14:25 +0000 (00:14 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 1 Apr 2021 19:29:06 +0000 (22:29 +0300)
source/glsl/finalize.cpp

index 55f7b82e5ed107aae78042d4bacc2204accc5945..b8c3378cc5ee6e6ff010e3f7b65bde411468b6f6 100644 (file)
@@ -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));