]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.cpp
Fix the return value of ConstantFolder::apply
[libs/gl.git] / source / glsl / optimize.cpp
index b1201e9fb84cec84c8a7236121963f982cfa43cb..ed20bb175dcc9277e1ff84e2e1a1734b2279668f 100644 (file)
@@ -657,6 +657,7 @@ void ConstantFolder::visit(RefPtr<Expression> &expr)
        }
        literal->value = r_constant_value;
        expr = literal;
+       r_any_folded = true;
 }
 
 void ConstantFolder::visit(Literal &literal)