mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gleffects: Correct attributes for hconv and vconv shaders
Width and height were switched for glow shaders. For blur filter attributes names were obsolete. https://bugzilla.gnome.org/show_bug.cgi?id=746209
This commit is contained in:
parent
40422d03c6
commit
ff4bc2364c
2 changed files with 4 additions and 4 deletions
|
@ -97,7 +97,7 @@ gst_gl_effects_glow_step_two (gint width, gint height, guint texture,
|
|||
|
||||
gst_gl_shader_set_uniform_1i (shader, "tex", 1);
|
||||
gst_gl_shader_set_uniform_1fv (shader, "kernel", 7, gauss_kernel);
|
||||
gst_gl_shader_set_uniform_1f (shader, "gauss_width", height);
|
||||
gst_gl_shader_set_uniform_1f (shader, "gauss_width", width);
|
||||
|
||||
gst_gl_filter_draw_texture (filter, texture, width, height);
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ gst_gl_effects_glow_step_three (gint width, gint height, guint texture,
|
|||
|
||||
gst_gl_shader_set_uniform_1i (shader, "tex", 1);
|
||||
gst_gl_shader_set_uniform_1fv (shader, "kernel", 7, gauss_kernel);
|
||||
gst_gl_shader_set_uniform_1f (shader, "gauss_height", width);
|
||||
gst_gl_shader_set_uniform_1f (shader, "gauss_height", height);
|
||||
|
||||
gst_gl_filter_draw_texture (filter, texture, width, height);
|
||||
}
|
||||
|
|
|
@ -228,7 +228,7 @@ gst_gl_filterblur_hcallback (gint width, gint height, guint texture,
|
|||
gst_gl_shader_set_uniform_1i (filterblur->shader0, "tex", 1);
|
||||
gst_gl_shader_set_uniform_1fv (filterblur->shader0, "kernel", 7,
|
||||
filterblur->gauss_kernel);
|
||||
gst_gl_shader_set_uniform_1f (filterblur->shader0, "width", width);
|
||||
gst_gl_shader_set_uniform_1f (filterblur->shader0, "gauss_width", width);
|
||||
|
||||
gst_gl_filter_draw_texture (filter, texture, width, height);
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ gst_gl_filterblur_vcallback (gint width, gint height, guint texture,
|
|||
gst_gl_shader_set_uniform_1i (filterblur->shader1, "tex", 1);
|
||||
gst_gl_shader_set_uniform_1fv (filterblur->shader1, "kernel", 7,
|
||||
filterblur->gauss_kernel);
|
||||
gst_gl_shader_set_uniform_1f (filterblur->shader1, "height", height);
|
||||
gst_gl_shader_set_uniform_1f (filterblur->shader1, "gauss_height", height);
|
||||
|
||||
gst_gl_filter_draw_texture (filter, texture, width, height);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue