glsl: fix check for glsl version against GL context inversion

Any GLSL version that was less than the provided GL version would fail
This commit is contained in:
Matthew Waters 2015-11-10 20:13:53 +11:00
parent d624ba0c61
commit 776ccf87b5

View file

@ -477,7 +477,7 @@ gst_gl_context_supports_glsl_profile_version (GstGLContext * context,
gl_api = gst_gl_context_get_gl_api (context);
gst_gl_context_get_gl_version (context, &maj, &min);
glsl_version = gst_gl_version_to_glsl_version (gl_api, maj, min);
if (glsl_version > version)
if (version > glsl_version)
return FALSE;
if (gst_gl_context_check_gl_version (context, GST_GL_API_OPENGL3, 1, 0))