mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gleffects: only try the GL2 shader init path if we have a GL2 context
This commit is contained in:
parent
e1b077d6af
commit
a852146624
1 changed files with 9 additions and 7 deletions
|
@ -556,6 +556,7 @@ gst_gl_effects_get_fragment_shader (GstGLEffects * effects,
|
|||
}
|
||||
}
|
||||
#if GST_GL_HAVE_OPENGL
|
||||
if (USING_OPENGL (context)) {
|
||||
if (!gst_gl_shader_compile_and_check (shader,
|
||||
shader_source_opengl, GST_GL_SHADER_FRAGMENT_SOURCE)) {
|
||||
gst_gl_context_set_error (context, "Failed to initialize %s shader",
|
||||
|
@ -564,6 +565,7 @@ gst_gl_effects_get_fragment_shader (GstGLEffects * effects,
|
|||
gst_gl_context_get_error ()), (NULL));
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue