]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compatibility.cpp
Tweaks to visitor classes in the GLSL compiler
[libs/gl.git] / source / glsl / compatibility.cpp
index f12a46e384cf6c451b05125048ba89ffd38fe733..692db972b56491eca5de797ae0f79bec61995754 100644 (file)
@@ -20,7 +20,7 @@ DefaultPrecisionGenerator::DefaultPrecisionGenerator():
 
 void DefaultPrecisionGenerator::apply(Stage &stage)
 {
-       SetForScope<Stage::Type> set_stage(stage_type, stage.type);
+       stage_type = stage.type;
        visit(stage.content);
 }
 
@@ -87,7 +87,7 @@ LegacyConverter::LegacyConverter():
 
 void LegacyConverter::apply(Stage &s)
 {
-       SetForScope<Stage *> set_stage(stage, &s);
+       stage = &s;
        visit(s.content);
 }