diff options
author | Matthew Waters <ystreet00@gmail.com> | 2014-01-30 07:49:20 +1100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-01-30 20:54:42 +0100 |
commit | 2cefaae3e9334bff387fd40ec7d77771c19a5891 (patch) | |
tree | bb9f2d7d0061d9faff7009e03ef65c10b560fe17 /gst/gl/effects/gstgleffecttwirl.c | |
parent | 70a063d1f688bb4cd0d1751826748a35cd7e8d29 (diff) |
filter: implement draw_texture for GLES2
(taken from gleffects)
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 |