]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/optimize.cpp
Move the StageType enum inside the Stage struct
[libs/gl.git] / source / glsl / optimize.cpp
index 25115a5975674485afb4f0b8e1368250419be451..f4d1680bccfbe76d1dd3ddb4829390fdee123f95 100644 (file)
@@ -224,7 +224,7 @@ void UnusedVariableLocator::apply(Stage &s)
        BlockVariableMap &global_variables = variables.back();
        for(BlockVariableMap::iterator i=global_variables.begin(); i!=global_variables.end(); ++i)
        {
-               if(i->first->interface=="out" && (s.type==FRAGMENT || i->first->linked_declaration || !i->first->name.compare(0, 3, "gl_")))
+               if(i->first->interface=="out" && (s.type==Stage::FRAGMENT || i->first->linked_declaration || !i->first->name.compare(0, 3, "gl_")))
                        continue;
                if(!i->second.referenced)
                {