projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
669b360
)
gleffects: identity: add the shader to the hash table
author
Matthew Waters
<matthew@centricular.com>
Mon, 8 Feb 2016 01:23:12 +0000
(12:23 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Mon, 8 Feb 2016 01:24:32 +0000
(12:24 +1100)
So that we don't recreate it every frame and leak memory.
https://bugzilla.gnome.org/show_bug.cgi?id=761578
ext/gl/effects/gstgleffectidentity.c
patch
|
blob
|
history
diff --git
a/ext/gl/effects/gstgleffectidentity.c
b/ext/gl/effects/gstgleffectidentity.c
index
ce29f60
..
5687d64
100644
(file)
--- a/
ext/gl/effects/gstgleffectidentity.c
+++ b/
ext/gl/effects/gstgleffectidentity.c
@@
-54,6
+54,8
@@
gst_gl_effects_identity_callback (gint width, gint height, guint texture,
gst_gl_shader_get_attribute_location (shader, "a_position");
filter->draw_attr_texture_loc =
gst_gl_shader_get_attribute_location (shader, "a_texcoord");
+
+ g_hash_table_insert (effects->shaderstable, (gchar *) "identity0", shader);
}
gst_gl_shader_use (shader);