X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;h=25b7e4a0450d8d89e940579a87af356a74ee5ac1;hb=7a16308e72aef363727b21348779673edf8e5c07;hp=549e5e895add03fb41f8b62b3c038a1be01326cb;hpb=696a97bd7411d69953c1a9e4b5f3dfb4c1d848f1;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 549e5e89..25b7e4a0 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -360,17 +360,17 @@ struct Jump: Statement virtual void visit(NodeVisitor &); }; -enum StageType -{ - SHARED, - VERTEX, - GEOMETRY, - FRAGMENT -}; - struct Stage { - StageType type; + enum Type + { + SHARED, + VERTEX, + GEOMETRY, + FRAGMENT + }; + + Type type; Stage *previous; Block content; std::map in_variables; @@ -379,7 +379,7 @@ struct Stage Version required_version; std::vector required_extensions; - Stage(StageType); + Stage(Type); }; struct Module