mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-04 20:52:25 +00:00
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:
parent
0349f15269
commit
8c4128df5d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue