From 9eb5001e022f8667cd560d9fbf12d716c0f1b38e Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sun, 13 Apr 2014 22:16:45 +1000 Subject: [PATCH] glimagesink: remove unused texture --- ext/gl/gstglimagesink.c | 7 ------- ext/gl/gstglimagesink.h | 1 - 2 files changed, 8 deletions(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 3632ef101e..4626e8344d 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -651,9 +651,6 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps) width = GST_VIDEO_INFO_WIDTH (&vinfo); height = GST_VIDEO_INFO_HEIGHT (&vinfo); - if (glimage_sink->tex_id) - gst_gl_context_del_texture (glimage_sink->context, &glimage_sink->tex_id); - par_n = GST_VIDEO_INFO_PAR_N (&vinfo); par_d = GST_VIDEO_INFO_PAR_D (&vinfo); @@ -704,10 +701,6 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps) if (!_ensure_gl_setup (glimage_sink)) return FALSE; - //FIXME: this texture seems to be never deleted when going to STATE_NULL - gst_gl_context_gen_texture (glimage_sink->context, &glimage_sink->tex_id, - GST_VIDEO_INFO_FORMAT (&glimage_sink->info), width, height); - newpool = gst_gl_buffer_pool_new (glimage_sink->context); structure = gst_buffer_pool_get_config (newpool); gst_buffer_pool_config_set_params (structure, caps, vinfo.size, 2, 0); diff --git a/ext/gl/gstglimagesink.h b/ext/gl/gstglimagesink.h index 70e8f6e930..2f028368ff 100644 --- a/ext/gl/gstglimagesink.h +++ b/ext/gl/gstglimagesink.h @@ -66,7 +66,6 @@ struct _GstGLImageSink GstGLUpload *upload; guint next_tex; - GLuint tex_id; CRCB clientReshapeCallback; CDCB clientDrawCallback;