]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Output the passthrough statement in both GLSL and debug modes
[libs/gl.git] / source / glsl / debug.cpp
index 2bc3a893e099384e16c663cfdfd601e3a945d85d..4de8ac90ad927ed05175923827a25895ab176d71 100644 (file)
@@ -300,6 +300,18 @@ void DumpTree::visit(Iteration &iter)
        end_sub();
 }
 
+void DumpTree::visit(Passthrough &pass)
+{
+       append("passthrough");
+       if(pass.subscript)
+       {
+               begin_sub();
+               last_branch();
+               pass.subscript->visit(*this);
+               end_sub();
+       }
+}
+
 void DumpTree::visit(Return &ret)
 {
        if(ret.expression)