From b43fa6e105ed6f176f7734864c73d25a0f8ee082 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 29 Dec 2015 17:04:57 +1100 Subject: [PATCH] gleffects: fix shader compilation with legacy opengl All the gleffects shaders can be run against a gles2 or a legacy opengl glsl compiler but weren't being advertised as such. Fixes gleffects under desktop opengl < 3.2. --- ext/gl/gstgleffects.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/gl/gstgleffects.c b/ext/gl/gstgleffects.c index 5c906fc7c8..b2b453f8c2 100644 --- a/ext/gl/gstgleffects.c +++ b/ext/gl/gstgleffects.c @@ -550,7 +550,8 @@ gst_gl_effects_get_fragment_shader (GstGLEffects * effects, if (!(shader = gst_gl_shader_new_link_with_stages (context, &error, gst_glsl_stage_new_default_vertex (context), gst_glsl_stage_new_with_string (context, GL_FRAGMENT_SHADER, - GST_GLSL_VERSION_NONE, GST_GLSL_PROFILE_ES, + GST_GLSL_VERSION_NONE, + GST_GLSL_PROFILE_ES | GST_GLSL_PROFILE_COMPATIBILITY, shader_source_gles2), NULL))) { GST_ELEMENT_ERROR (effects, RESOURCE, NOT_FOUND, ("Failed to initialize %s shader", shader_name), (NULL));