diff options
Diffstat (limited to 'gst/gl/effects/gstgleffecttwirl.c')
-rw-r--r-- | gst/gl/effects/gstgleffecttwirl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/gl/effects/gstgleffecttwirl.c b/gst/gl/effects/gstgleffecttwirl.c index 06594c0..22ce874 100644 --- a/gst/gl/effects/gstgleffecttwirl.c +++ b/gst/gl/effects/gstgleffecttwirl.c @@ -29,7 +29,8 @@ gst_gl_effects_twirl_callback (gint width, gint height, guint texture, { GstGLShader *shader; GstGLEffects *effects = GST_GL_EFFECTS (data); - GstGLContext *context = GST_GL_FILTER (effects)->context; + GstGLFilter *filter = GST_GL_FILTER (effects); + GstGLContext *context = filter->context; GstGLFuncs *gl = context->gl_vtable; shader = g_hash_table_lookup (effects->shaderstable, "twirl0"); @@ -61,7 +62,7 @@ gst_gl_effects_twirl_callback (gint width, gint height, guint texture, gst_gl_shader_set_uniform_1f (shader, "width", (gfloat) width / 2.0f); gst_gl_shader_set_uniform_1f (shader, "height", (gfloat) height / 2.0f); - gst_gl_effects_draw_texture (effects, texture, width, height); + gst_gl_filter_draw_texture (filter, texture, width, height); } void |