mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-12 01:05:47 +00:00
wpe: remove glFlush() when filling buffer
According to https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4162#note_2739338 it was introduced as workaround for tearing issues. I do not experience any tearing without flushing on both nvidia and AMD GPU, so I suppose it's no longer needed. Slightly improve CPU usage according to my tests. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8348>
This commit is contained in:
parent
d7274f574c
commit
0e3d6f0606
1 changed files with 0 additions and 1 deletions
|
@ -281,7 +281,6 @@ gst_wpe_video_src_fill_memory (GstGLBaseSrc * bsrc, GstGLMemory * memory)
|
||||||
gl->BindTexture (GL_TEXTURE_2D, tex_id);
|
gl->BindTexture (GL_TEXTURE_2D, tex_id);
|
||||||
gl->EGLImageTargetTexture2D (GL_TEXTURE_2D,
|
gl->EGLImageTargetTexture2D (GL_TEXTURE_2D,
|
||||||
gst_egl_image_get_image (locked_image));
|
gst_egl_image_get_image (locked_image));
|
||||||
gl->Flush ();
|
|
||||||
WPE_UNLOCK (src);
|
WPE_UNLOCK (src);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue