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:
Guillaume Desmottes 2025-01-23 13:20:50 +01:00 committed by GStreamer Marge Bot
parent d7274f574c
commit 0e3d6f0606

View file

@ -281,7 +281,6 @@ gst_wpe_video_src_fill_memory (GstGLBaseSrc * bsrc, GstGLMemory * memory)
gl->BindTexture (GL_TEXTURE_2D, tex_id);
gl->EGLImageTargetTexture2D (GL_TEXTURE_2D,
gst_egl_image_get_image (locked_image));
gl->Flush ();
WPE_UNLOCK (src);
return TRUE;
}