X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Ffinalize.cpp;fp=source%2Fglsl%2Ffinalize.cpp;h=d840648bbc3ec0135bbb02b4dc47350cf753f03f;hb=79db78e77054cd93e69123b3b6495a561f5cbd10;hp=3b0909ac2a90949733577e0e3a22dc0383cca445;hpb=7272d97c23eedb3850661deec964c4a9c96337fe;p=libs%2Fgl.git diff --git a/source/glsl/finalize.cpp b/source/glsl/finalize.cpp index 3b0909ac..d840648b 100644 --- a/source/glsl/finalize.cpp +++ b/source/glsl/finalize.cpp @@ -471,7 +471,14 @@ void StructuralFeatureConverter::visit(RefPtr &expr) bool StructuralFeatureConverter::supports_stage(Stage::Type st) const { - if(st==Stage::GEOMETRY) + if(st==Stage::TESS_CONTROL || st==Stage::TESS_EVAL) + { + if(features.target_api==OPENGL_ES) + return check_version(Version(3, 20)); + else + return check_version(Version(4, 0)); + } + else if(st==Stage::GEOMETRY) { if(features.target_api==OPENGL_ES) return check_version(Version(3, 20));