mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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.
This commit is contained in:
parent
0aa1373a61
commit
b43fa6e105
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue