diff options
author | Simon Ser <contact@emersion.fr> | 2023-07-10 16:08:49 +0200 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2023-07-14 10:49:44 +0000 |
commit | 8c4128df5d16db2d84770c0dd68dca185a54c615 (patch) | |
tree | 9a59d8be051ff4861a937157032f4d116f8a97bf /clients | |
parent | 0349f152698eff7ec699517ff3832dd015d1fc77 (diff) |
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>
Diffstat (limited to 'clients')
-rw-r--r-- | clients/simple-dmabuf-feedback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/simple-dmabuf-feedback.c b/clients/simple-dmabuf-feedback.c index e5b7f9b0..85b79f59 100644 --- a/clients/simple-dmabuf-feedback.c +++ b/clients/simple-dmabuf-feedback.c @@ -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; |