From 599f50ec34aba2c35dcab9d17d8b9fc6bfbd0a07 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 1 Apr 2021 00:14:25 +0300 Subject: [PATCH] Add missing NodeRemover invocation to LegacyConverter --- source/glsl/finalize.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glsl/finalize.cpp b/source/glsl/finalize.cpp index 55f7b82e..b8c3378c 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)); -- 2.45.2