From 0349f152698eff7ec699517ff3832dd015d1fc77 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 Jul 2023 16:06:04 +0200 Subject: [PATCH] clients/simple-dmabuf-egl: do not block until rendering completes glFinish() blocks until all commands have finished. This is unnecessary: we can use glFlush() and rely on implicit sync instead. Signed-off-by: Simon Ser --- clients/simple-dmabuf-egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/simple-dmabuf-egl.c b/clients/simple-dmabuf-egl.c index aed9b43c..53a25fb4 100644 --- a/clients/simple-dmabuf-egl.c +++ b/clients/simple-dmabuf-egl.c @@ -1010,7 +1010,7 @@ redraw(void *data, struct wl_callback *callback, uint32_t time) zwp_linux_buffer_release_v1_add_listener( buffer->buffer_release, &buffer_release_listener, buffer); } else { - glFinish(); + glFlush(); } wl_surface_attach(window->surface, buffer->buffer, 0, 0);