mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +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);
|
||||
|
||||
if (gst_gl_context_get_gl_api (filter->context) & (GST_GL_API_GLES2 |
|
||||
GST_GL_API_OPENGL3)) {
|
||||
/* blocking call, wait the opengl thread has compiled the shader */
|
||||
return gst_gl_context_gen_shader (filter->context, cube_v_src, cube_f_src,
|
||||
&cube_filter->shader);
|
||||
}
|
||||
return TRUE;
|
||||
/* blocking call, wait the opengl thread has compiled the shader */
|
||||
return gst_gl_context_gen_shader (filter->context, cube_v_src, cube_f_src,
|
||||
&cube_filter->shader);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue