16
0
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:
milek7
2019-03-18 19:10:45 +01:00
parent 9d613cb693
commit e7a58cc1ba
2 changed files with 2 additions and 1 deletions

View File

@@ -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);