mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 04:19:19 +02:00
apply vsync also on extra viewports
This commit is contained in:
@@ -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