From: Mikko Rasa Date: Thu, 22 Apr 2021 12:20:49 +0000 (+0300) Subject: Fix an issue with folding the sole argument of a conversion X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6ce72432215dd686f7c073616a7f3aa34e7d2b8d;p=libs%2Fgl.git Fix an issue with folding the sole argument of a conversion --- diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 2e7f8aa7..593a3222 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -804,7 +804,7 @@ void ConstantFolder::visit(FunctionCall &call) const BasicTypeDeclaration *basic = dynamic_cast(call.type); if(basic) { - call.arguments[0]->visit(*this); + visit(call.arguments[0]); bool can_fold = r_constant; r_constant = false; if(!can_fold)