clients/simple-dmabuf-feedback: 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 <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-07-10 16:08:49 +02:00 committed by Daniel Stone
parent 0349f15269
commit 8c4128df5d

View file

@ -667,7 +667,7 @@ render(struct buffer *buffer)
glDisableVertexAttribArray(window->gl.pos);
glDisableVertexAttribArray(window->gl.color);
glFinish();
glFlush();
}
static const struct wl_callback_listener frame_listener;