]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.cpp
Tweaks to visitor classes in the GLSL compiler
[libs/gl.git] / source / glsl / generate.cpp
index f3c57a2f0f9190352860bc5f7bc22ff634433123..379a6871ae754aef88ec7b589997493e025733e1 100644 (file)
@@ -255,7 +255,7 @@ string InterfaceGenerator::get_out_prefix(Stage::Type type)
 
 void InterfaceGenerator::apply(Stage &s)
 {
-       SetForScope<Stage *> set(stage, &s);
+       stage = &s;
        if(stage->previous)
                in_prefix = get_out_prefix(stage->previous->type);
        out_prefix = get_out_prefix(stage->type);