]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.cpp
Check that variable references refer do declared variables
[libs/gl.git] / source / glsl / compiler.cpp
index f5540139e3391cffd1afd1b9f2f8e709fa4b99d5..0f608d6d600313682577df96a3c7e2cccd2e5226 100644 (file)
@@ -260,6 +260,7 @@ void Compiler::generate(Stage &stage, Mode mode)
 bool Compiler::validate(Stage &stage)
 {
        DeclarationValidator().apply(stage);
+       ReferenceValidator().apply(stage);
 
        for(vector<Diagnostic>::const_iterator i=stage.diagnostics.begin(); i!=stage.diagnostics.end(); ++i)
                if(i->severity==Diagnostic::ERR)