mirror of
https://github.com/glfw/glfw
synced 2026-09-26 16:18:21 +03:00
Wayland: Fix deadlock causing timeout
If the frame was processed by wl_display_dispatch_queue_pending, this
would be treated as no frame having been received.
Oops.
This bug was introduced by fdd14e65b1.
This commit is contained in:
parent
fdd14e65b1
commit
50b0a135a5
1 changed files with 4 additions and 1 deletions
|
|
@ -2324,8 +2324,11 @@ GLFWbool _glfwWaitForEGLFrameWayland(_GLFWwindow* window)
|
|||
|
||||
while (window->wl.egl.callback)
|
||||
{
|
||||
while (wl_display_prepare_read_queue(_glfw.wl.display, window->wl.egl.queue) != 0)
|
||||
if (wl_display_prepare_read_queue(_glfw.wl.display, window->wl.egl.queue) != 0)
|
||||
{
|
||||
wl_display_dispatch_queue_pending(_glfw.wl.display, window->wl.egl.queue);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!flushDisplay())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue