]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compatibility.cpp
Adjust member access of the various visitors in the GLSL compiler
[libs/gl.git] / source / glsl / compatibility.cpp
index 398a7bd30a76eaa4b141b400d9cd4e08d0e87958..1ada7b7c9acbd0f23fab28e868ca839621263b92 100644 (file)
@@ -91,6 +91,12 @@ LegacyConverter::LegacyConverter(const Version &v):
        frag_out(0)
 { }
 
+void LegacyConverter::apply(Stage &s)
+{
+       SetForScope<Stage *> set_stage(stage, &s);
+       visit(s.content);
+}
+
 bool LegacyConverter::check_version(const Version &feature_version) const
 {
        if(target_version<feature_version)
@@ -113,12 +119,6 @@ bool LegacyConverter::check_extension(const Extension &extension) const
        return true;
 }
 
-void LegacyConverter::apply(Stage &s)
-{
-       SetForScope<Stage *> set_stage(stage, &s);
-       visit(s.content);
-}
-
 bool LegacyConverter::supports_unified_interface_syntax() const
 {
        if(target_api==OPENGL_ES2)