]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/output.cpp
Move the StageType enum inside the Stage struct
[libs/gl.git] / source / glsl / output.cpp
index aaba1dc4a0a638f15145dc48726344256056727a..dfd93470dd101dfac8ca4c7f8a07be588bb11e9f 100644 (file)
@@ -211,9 +211,9 @@ void Formatter::visit(VariableDeclaration &var)
                string interface = var.interface;
                if(stage->required_version<Version(1, 30))
                {
-                       if(stage->type==VERTEX && var.interface=="in")
+                       if(stage->type==Stage::VERTEX && var.interface=="in")
                                interface = "attribute";
-                       else if((stage->type==VERTEX && var.interface=="out") || (stage->type==FRAGMENT && var.interface=="in"))
+                       else if((stage->type==Stage::VERTEX && var.interface=="out") || (stage->type==Stage::FRAGMENT && var.interface=="in"))
                                interface = "varying";
                }
                append(format("%s ", interface));