]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Fix GLSL member access index calculation
[libs/gl.git] / source / glsl / debug.cpp
index 2be5bce4ee2a97d5a31408af182c19c3571c0701..bd3404e56f0fae10addb22fb90f3aec2f234560c 100644 (file)
@@ -162,7 +162,7 @@ void DumpTree::visit(MemberAccess &memacc)
        string text = "Member access:";
        if(memacc.declaration)
                text += format(" %%%d", get_label(*memacc.declaration));
-       text += format(" .%s -> %s", memacc.member, format_type(memacc.type));
+       text += format(" .%s (%d) -> %s", memacc.member, memacc.index, format_type(memacc.type));
        append(memacc, text);
        append_subtree(*memacc.left);
 }