mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
9a3ea0adb7
commit
5d7556a08d
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ gst_gl_context_supports_glsl_profile_version (GstGLContext * context,
|
||||||
gl_api = gst_gl_context_get_gl_api (context);
|
gl_api = gst_gl_context_get_gl_api (context);
|
||||||
gst_gl_context_get_gl_version (context, &maj, &min);
|
gst_gl_context_get_gl_version (context, &maj, &min);
|
||||||
glsl_version = gst_gl_version_to_glsl_version (gl_api, maj, min);
|
glsl_version = gst_gl_version_to_glsl_version (gl_api, maj, min);
|
||||||
if (glsl_version > version)
|
if (version > glsl_version)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (gst_gl_context_check_gl_version (context, GST_GL_API_OPENGL3, 1, 0))
|
if (gst_gl_context_check_gl_version (context, GST_GL_API_OPENGL3, 1, 0))
|
||||||
|
|
Loading…
Reference in a new issue