X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foutput.cpp;h=52026c4d81fc18e7a7c3ded35eb1c57bedbc449e;hb=d8bdf61007978e2c3670a22a58e2f105e8347537;hp=f1e9b4be99ca8a2582e7a97944c0c16666f80540;hpb=bde40be11da83206f3d33a8225963d47a413662e;p=libs%2Fgl.git diff --git a/source/glsl/output.cpp b/source/glsl/output.cpp index f1e9b4be..52026c4d 100644 --- a/source/glsl/output.cpp +++ b/source/glsl/output.cpp @@ -145,13 +145,6 @@ void Formatter::visit(Literal &literal) append(literal.token); } -void Formatter::visit(ParenthesizedExpression &parexpr) -{ - append('('); - parexpr.expression->visit(*this); - append(')'); -} - void Formatter::visit(VariableReference &var) { append(var.name); @@ -313,7 +306,7 @@ void Formatter::visit(VariableDeclaration &var) void Formatter::visit(InterfaceBlock &iface) { - append(format("%s %s\n", iface.interface, iface.name)); + append(format("%s %s\n", iface.interface, iface.block_name)); if(iface.struct_declaration) iface.struct_declaration->members.visit(*this); if(!iface.instance_name.empty())