From 3423e108d49e36f784d320002fc339f610f901f3 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 7 Jan 2016 20:54:41 +1100 Subject: glmemorypbo: don't double read pixels The optimistic download_transfer was not setting the required flag to not perform glReadPixels on subsequent map (READ). resulting in glReadPixels happening twice. --- gst-libs/gst/gl/gstglmemorypbo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst-libs/gst/gl/gstglmemorypbo.c') diff --git a/gst-libs/gst/gl/gstglmemorypbo.c b/gst-libs/gst/gl/gstglmemorypbo.c index 9649c6abf..37fe85a72 100644 --- a/gst-libs/gst/gl/gstglmemorypbo.c +++ b/gst-libs/gst/gl/gstglmemorypbo.c @@ -792,6 +792,7 @@ _download_transfer (GstGLContext * context, GstGLMemoryPBO * gl_mem) if (_read_pixels_to_pbo (gl_mem)) GST_CAT_TRACE (GST_CAT_GL_MEMORY, "optimistic download of texture %u " "using pbo %u", gl_mem->mem.tex_id, gl_mem->pbo->id); + GST_MEMORY_FLAG_UNSET (gl_mem, GST_GL_BASE_MEMORY_TRANSFER_NEED_DOWNLOAD); g_mutex_unlock (&mem->lock); } -- cgit v1.2.1