X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Foptimize.cpp;h=f4d1680bccfbe76d1dd3ddb4829390fdee123f95;hp=25115a5975674485afb4f0b8e1368250419be451;hb=7a16308e72aef363727b21348779673edf8e5c07;hpb=696a97bd7411d69953c1a9e4b5f3dfb4c1d848f1 diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 25115a59..f4d1680b 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -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) {