]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.cpp
Fix opcode for matrix inverse
[libs/gl.git] / source / glsl / output.cpp
index 38adb5bd6b799f54f165299657b90f09830293de..50b60c1411d34a67ec5aae4d20a7b5dab233a881 100644 (file)
@@ -18,7 +18,7 @@ Formatter::Formatter():
        r_empty_name(false)
 { }
 
-const string &Formatter::apply(Stage &s)
+string Formatter::apply(Stage &s)
 {
        stage = &s;
        omit_builtin = true;
@@ -171,6 +171,7 @@ void Formatter::visit(MemberAccess &memacc)
        if(!r_empty_name)
                append('.');
        append(memacc.member);
+       r_empty_name = false;
 }
 
 void Formatter::visit(Swizzle &swizzle)