Most of the version checks won't trigger for GLSL 1.20 and none will for
GLSL 1.10.
stage = &s;
features = feat;
if(supports_stage(s.type))
stage = &s;
features = feat;
if(supports_stage(s.type))
+
+ 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)));
}
else
unsupported(format("Stage %s is not supported", Stage::get_stage_name(s.type)));
}