From 223e295e4404a3913b8243d3b7eb12da39a68144 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 3 Mar 2021 12:41:15 +0200 Subject: [PATCH] Fix a block management error in FunctionInliner --- source/glsl/optimize.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 8d3eca9e..08455c8a 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -199,6 +199,7 @@ void FunctionInliner::visit_and_inline(RefPtr &ptr) void FunctionInliner::visit(Block &block) { + SetForScope set_block(current_block, &block); SetForScope::iterator> save_insert_point(insert_point, block.body.begin()); for(NodeList::iterator i=block.body.begin(); i!=block.body.end(); ++i) { -- 2.45.2