]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.cpp
Don't check the address of an inline array
[libs/gl.git] / source / glsl / output.cpp
index c2c54f9ff33834d11d681a0e80e976aa75747b39..6b76167468b73d52b16d67e78995dc0961c6c62d 100644 (file)
@@ -200,7 +200,7 @@ void Formatter::visit(TernaryExpression &ternary)
        visit_expression(*ternary.condition, ternary.oper, false);
        append(ternary.oper->token);
        visit_expression(*ternary.true_expr, ternary.oper, false);
-       if(ternary.oper->token2)
+       if(ternary.oper->token2[0])
                append(ternary.oper->token2);
        visit_expression(*ternary.false_expr, ternary.oper, true);
 }