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/gstgleffectsqueeze.c | |
parent | 70a063d1f688bb4cd0d1751826748a35cd7e8d29 (diff) |
filter: implement draw_texture for GLES2
(taken from gleffects)
Diffstat (limited to 'gst/gl/effects/gstgleffectsqueeze.c')
-rw-r--r-- | gst/gl/effects/gstgleffectsqueeze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gl/effects/gstgleffectsqueeze.c b/gst/gl/effects/gstgleffectsqueeze.c index 3c10589..14a9bcb 100644 --- a/gst/gl/effects/gstgleffectsqueeze.c +++ b/gst/gl/effects/gstgleffectsqueeze.c @@ -63,9 +63,9 @@ gst_gl_effects_squeeze_callback (gint width, gint height, guint texture, GST_ELEMENT_ERROR (effects, RESOURCE, NOT_FOUND, ("%s", gst_gl_context_get_error ()), (NULL)); } else { - effects->draw_attr_position_loc = + filter->draw_attr_position_loc = gst_gl_shader_get_attribute_location (shader, "a_position"); - effects->draw_attr_texture_loc = + filter->draw_attr_texture_loc = gst_gl_shader_get_attribute_location (shader, "a_texCoord"); } } @@ -106,7 +106,7 @@ gst_gl_effects_squeeze_callback (gint width, gint height, guint texture, } #endif - gst_gl_effects_draw_texture (effects, texture, width, height); + gst_gl_filter_draw_texture (filter, texture, width, height); } void |