fix (glfw): Remove duplicate glfwSwapInterval (#4484)

This commit is contained in:
Adrian Cojocaru
2026-08-14 14:57:36 +03:00
committed by GitHub
parent a666f02633
commit 743ed53794

View File

@@ -304,13 +304,6 @@ GLFWView::GLFWView(bool fullscreen_,
glfwSetWindowRefreshCallback(window, onWindowRefresh);
#endif
// "... applications will typically want to set the swap interval to one"
// https://www.glfw.org/docs/latest/quick.html#quick_swap_buffers
#if defined(MLN_RENDER_BACKEND_OPENGL)
glfwSwapInterval(1);
#endif
glfwGetWindowSize(window, &width, &height);
bool capFrameRate = !benchmark; // disable VSync in benchmark mode