diff --git a/application.cpp b/application.cpp index a1dd14a5..14d0360a 100644 --- a/application.cpp +++ b/application.cpp @@ -660,7 +660,6 @@ eu07_application::init_glfw() { } glfwMakeContextCurrent( win ); - glfwSwapInterval( Global.VSync ? 1 : 0 ); //vsync #ifdef _WIN32 // setup wrapper for base glfw window proc, to handle copydata messages diff --git a/renderer.cpp b/renderer.cpp index 442f01a4..6e1a054e 100644 --- a/renderer.cpp +++ b/renderer.cpp @@ -311,6 +311,8 @@ bool opengl_renderer::init_viewport(viewport_config &vp) WriteLog("init viewport: " + std::to_string(vp.width) + ", " + std::to_string(vp.height)); + glfwSwapInterval( Global.VSync ? 1 : 0 ); + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glPixelStorei(GL_PACK_ALIGNMENT, 1);