]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.cpp
Slightly refactor layout qualifiers in the GLSL parser
[libs/gl.git] / source / glsl / output.cpp
index 3fc703c1966d9b4a9c745f7f3ee8e49aa55c5af8..c1da9feccb2bd3f8e6c835bf91d57a21ad7b9913 100644 (file)
@@ -186,9 +186,9 @@ void Formatter::visit(Layout &layout)
        {
                if(i!=layout.qualifiers.begin())
                        append(", ");
-               append(i->identifier);
-               if(!i->value.empty())
-                       append(format("=%s", i->value));
+               append(i->name);
+               if(i->has_value)
+                       append(format("=%d", i->value));
        }
        append(')');
 }