X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvalidate.h;h=558803ff8277b74902f3dcff65d2cdc454526c50;hp=b47a9911d95c6a147034f1937243f34bd69ebca9;hb=25629675e83449d986ef8896e830db562a8ae64e;hpb=401a3a7ab3c3e4b23edb4c3b5c9c1e74f4313ee4 diff --git a/source/glsl/validate.h b/source/glsl/validate.h index b47a9911..558803ff 100644 --- a/source/glsl/validate.h +++ b/source/glsl/validate.h @@ -39,13 +39,14 @@ private: FUNCTION }; + Features features; ScopeType scope = GLOBAL; InterfaceLayout *iface_layout = 0; InterfaceBlock *iface_block = 0; VariableDeclaration *variable = 0; public: - void apply(Stage &s) { stage = &s; s.content.visit(*this); } + void apply(Stage &, const Features &); private: static const char *describe_variable(ScopeType);