]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Properly resolve arithmetic assignment operators
[libs/gl.git] / source / glsl / debug.cpp
index 8a76744a1a90bbeeeac5366489ab978c017c93ee..77b9025a8776cd8cce3ae83ba26dba54d3c8c0ad 100644 (file)
@@ -177,7 +177,7 @@ void DumpTree::visit(BinaryExpression &binary)
 
 void DumpTree::visit(Assignment &assign)
 {
-       append(format("Assignment: %s%s", assign.oper->token, (assign.self_referencing ? " (self-referencing)" : "")));
+       append(format("Assignment: %s%s -> %s", assign.oper->token, (assign.self_referencing ? " (self-referencing)" : ""), format_type(assign.type)));
        begin_sub();
        if(assign.target_declaration)
                append(format("Target: %%%d %s %s", get_label(*assign.target_declaration), assign.target_declaration->type, assign.target_declaration->name));