]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.cpp
Fix a name conflict in certain inlining scenarios
[libs/gl.git] / source / glsl / output.cpp
index 0a4af2d42b0997f6d72f89542e1b6c038c3357d5..6b76167468b73d52b16d67e78995dc0961c6c62d 100644 (file)
@@ -8,16 +8,6 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
-Formatter::Formatter():
-       stage(0),
-       source_index(0),
-       source_line(1),
-       indent(0),
-       parameter_list(false),
-       omit_builtin(false),
-       r_empty_name(false)
-{ }
-
 string Formatter::apply(Stage &s)
 {
        stage = &s;
@@ -210,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);
 }