]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/visitor.cpp
Give declaration nodes to all GLSL types.
[libs/gl.git] / source / glsl / visitor.cpp
index fa6e614c6394a1705e4d45b6214fc55efbc760a1..bee312fd187d333fd94ef529d81d5fa489898f58 100644 (file)
@@ -154,10 +154,10 @@ void NodeRemover::visit(Block &block)
        }
 }
 
-void NodeRemover::visit(StructDeclaration &strct)
+void NodeRemover::visit(TypeDeclaration &type)
 {
-       if(to_remove->count(&strct))
-               remove_from_map(stage->types, strct.name, strct);
+       if(to_remove->count(&type))
+               remove_from_map(stage->types, type.name, type);
 }
 
 void NodeRemover::visit(VariableDeclaration &var)