From: Mikko Rasa Date: Mon, 8 Nov 2021 13:27:43 +0000 (+0200) Subject: Write access can't get into an unary operator from outside X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fa9cb2b366b9616924f4bbff5dc592d141795c26;p=libs%2Fgl.git Write access can't get into an unary operator from outside --- diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index c9d3c33a..96a75d60 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -402,7 +402,7 @@ void ExpressionInliner::visit(Swizzle &swizzle) void ExpressionInliner::visit(UnaryExpression &unary) { - SetFlag set_write(access_write, access_write || unary.oper->token[1]=='+' || unary.oper->token[1]=='-'); + SetFlag set_write(access_write, (unary.oper->token[1]=='+' || unary.oper->token[1]=='-')); visit(unary.expression); r_trivial = false; }