16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 14:39:18 +02:00

match video modes for extra windows, python vsync option

This commit is contained in:
milek7
2019-03-18 15:11:44 +01:00
parent e6e5d6645b
commit efb041aaa0
4 changed files with 20 additions and 25 deletions

View File

@@ -52,7 +52,7 @@ void python_screen_viewer::threadfunc()
for (auto &window : m_windows) {
glfwMakeContextCurrent(window.window);
glfwSwapInterval(1);
glfwSwapInterval(Global.python_vsync ? 1 : 0);
GLuint v;
glGenVertexArrays(1, &v);
glBindVertexArray(v);