mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
glimagesink: remove unused texture
This commit is contained in:
parent
57b4bd6905
commit
9eb5001e02
2 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -66,7 +66,6 @@ struct _GstGLImageSink
|
|||
|
||||
GstGLUpload *upload;
|
||||
guint next_tex;
|
||||
GLuint tex_id;
|
||||
|
||||
CRCB clientReshapeCallback;
|
||||
CDCB clientDrawCallback;
|
||||
|
|
Loading…
Reference in a new issue