diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglsl.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglsl.c index ce01a6ca31..63dbcb7716 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglsl.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglsl.c @@ -897,7 +897,12 @@ _mangle_version_profile_from_gl_api (GstGLContext * context, *profile = GST_GLSL_PROFILE_ES; } } else if (gl_api & GST_GL_API_OPENGL) { - *version = GST_GLSL_VERSION_110; + /* We only use GST_GL_API_OPENGL3 from 3.1, but nothing prevents us from + * using 3.0/1.30 GLSSL with GL2 API */ + if (gl_major >= 3) + *version = GST_GLSL_VERSION_130; + else + *version = GST_GLSL_VERSION_110; *profile = GST_GLSL_PROFILE_COMPATIBILITY; } }