fix (glfw): Remove duplicate glfwSwapInterval (#4484)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user