mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
gleffects: identity: add the shader to the hash table
So that we don't recreate it every frame and leak memory. https://bugzilla.gnome.org/show_bug.cgi?id=761578
This commit is contained in:
parent
f4bab389c5
commit
d8c710d143
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue