From: Mikko Rasa Date: Thu, 22 Apr 2021 10:50:11 +0000 (+0300) Subject: Fix the return value of ConstantFolder::apply X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=8bf70f4d445cf63386ad7aafc5b3ebdbd8369939 Fix the return value of ConstantFolder::apply This was causing the folded literals to be left without a type in some specific situations, since a resolve pass did not get run. --- diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index b1201e9f..ed20bb17 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -657,6 +657,7 @@ void ConstantFolder::visit(RefPtr &expr) } literal->value = r_constant_value; expr = literal; + r_any_folded = true; } void ConstantFolder::visit(Literal &literal)