X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Ffinalize.cpp;h=8a525e378cc0c990b41b53071538602b9ccbb768;hp=0725b7394213f9defb1553d728425009c1d66567;hb=429c48f064b094d5bb3e010b41aaae8dcabff901;hpb=3bb1cda37e23840236b46c4de20cab2c70b02327 diff --git a/source/glsl/finalize.cpp b/source/glsl/finalize.cpp index 0725b739..8a525e37 100644 --- a/source/glsl/finalize.cpp +++ b/source/glsl/finalize.cpp @@ -89,7 +89,12 @@ void LegacyConverter::apply(Stage &s, const Features &feat) stage = &s; features = feat; if(supports_stage(s.type)) + { s.content.visit(*this); + + if(!stage->required_features.glsl_version) + stage->required_features.glsl_version = Version(1, (stage->required_features.gl_api==OPENGL_ES2 ? 0 : 10)); + } else unsupported(format("Stage %s is not supported", Stage::get_stage_name(s.type))); }