mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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.
This commit is contained in:
parent
5ba0ab3da9
commit
880d2798b0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue