mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
glfiltercube: use a shader everywhere
This commit is contained in:
parent
f021549294
commit
15fc4b9bbe
1 changed files with 3 additions and 7 deletions
|
@ -308,13 +308,9 @@ gst_gl_filter_cube_init_shader (GstGLFilter * filter)
|
||||||
{
|
{
|
||||||
GstGLFilterCube *cube_filter = GST_GL_FILTER_CUBE (filter);
|
GstGLFilterCube *cube_filter = GST_GL_FILTER_CUBE (filter);
|
||||||
|
|
||||||
if (gst_gl_context_get_gl_api (filter->context) & (GST_GL_API_GLES2 |
|
/* blocking call, wait the opengl thread has compiled the shader */
|
||||||
GST_GL_API_OPENGL3)) {
|
return gst_gl_context_gen_shader (filter->context, cube_v_src, cube_f_src,
|
||||||
/* blocking call, wait the opengl thread has compiled the shader */
|
&cube_filter->shader);
|
||||||
return gst_gl_context_gen_shader (filter->context, cube_v_src, cube_f_src,
|
|
||||||
&cube_filter->shader);
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue