glfw: docs example has swapBuffers/pollEvents in wrong order? #1023

Closed
opened 2023-09-22 19:13:06 +00:00 by emidoots · 1 comment
emidoots commented 2023-09-22 19:13:06 +00:00 (Migrated from github.com)

The order of these two calls look a bit wrong:

    // Wait for the user to close the window.
    while (!window.shouldClose()) {
        window.swapBuffers();
        glfw.pollEvents();
    }

https://machengine.org/pkg/mach-glfw/#srcmainzig

The order of these two calls look a bit wrong: ``` // Wait for the user to close the window. while (!window.shouldClose()) { window.swapBuffers(); glfw.pollEvents(); } ``` https://machengine.org/pkg/mach-glfw/#srcmainzig
emidoots commented 2024-07-08 13:04:02 +00:00 (Migrated from github.com)
https://github.com/hexops/mach/issues/1166#issuecomment-2212962722
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#1023
No description provided.