[446/906] blur: forgot to add all the changes in previous commit

This commit is contained in:
Filippo Argiolas 2010-04-29 10:57:38 +02:00 committed by Matthew Waters
parent 556b1b79e4
commit 021a28657d

View file

@ -200,7 +200,8 @@ static void
gst_gl_filterblur_hcallback (gint width, gint height, guint texture, gst_gl_filterblur_hcallback (gint width, gint height, guint texture,
gpointer stuff) gpointer stuff)
{ {
GstGLFilterBlur *filterblur = GST_GL_FILTERBLUR (stuff); GstGLFilter *filter = GST_GL_FILTER (stuff);
GstGLFilterBlur *filterblur = GST_GL_FILTERBLUR (filter);
glMatrixMode (GL_PROJECTION); glMatrixMode (GL_PROJECTION);
glLoadIdentity (); glLoadIdentity ();
@ -216,7 +217,7 @@ gst_gl_filterblur_hcallback (gint width, gint height, guint texture,
gst_gl_shader_set_uniform_1fv (filterblur->shader0, "kernel", 9, gst_gl_shader_set_uniform_1fv (filterblur->shader0, "kernel", 9,
filterblur->gauss_kernel); filterblur->gauss_kernel);
gst_gl_filter_draw_texture (filterblur, texture); gst_gl_filter_draw_texture (filter, texture);
} }
@ -224,7 +225,8 @@ static void
gst_gl_filterblur_vcallback (gint width, gint height, guint texture, gst_gl_filterblur_vcallback (gint width, gint height, guint texture,
gpointer stuff) gpointer stuff)
{ {
GstGLFilterBlur *filterblur = GST_GL_FILTERBLUR (stuff); GstGLFilter *filter = GST_GL_FILTER (stuff);
GstGLFilterBlur *filterblur = GST_GL_FILTERBLUR (filter);
glMatrixMode (GL_PROJECTION); glMatrixMode (GL_PROJECTION);
glLoadIdentity (); glLoadIdentity ();
@ -240,5 +242,5 @@ gst_gl_filterblur_vcallback (gint width, gint height, guint texture,
gst_gl_shader_set_uniform_1fv (filterblur->shader1, "kernel", 9, gst_gl_shader_set_uniform_1fv (filterblur->shader1, "kernel", 9,
filterblur->gauss_kernel); filterblur->gauss_kernel);
gst_gl_filter_draw_texture (filterblur, texture); gst_gl_filter_draw_texture (filter, texture);
} }