From 15fc4b9bbe607ee4d5608d757e539658345682ca Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 11 Dec 2014 18:17:02 +1100 Subject: [PATCH] glfiltercube: use a shader everywhere --- ext/gl/gstglfiltercube.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ext/gl/gstglfiltercube.c b/ext/gl/gstglfiltercube.c index 83895549d4..e7582419e5 100644 --- a/ext/gl/gstglfiltercube.c +++ b/ext/gl/gstglfiltercube.c @@ -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