mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
apply vsync also on extra viewports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user