BGE: Flipping vsync constants so VSYNC_ON is 0.
This will make transitions from older versions of Blender easier since VSYNC_ON will be the default. This could have been changed in a do_version, but the vsync code has yet to see an official release, so I figured this would be a bit nicer. Also, this makes VSYNC_ON the default for new scenes as well.
This commit is contained in:
@@ -586,7 +586,7 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
|
||||
if (gm->vsync == VSYNC_ADAPTIVE)
|
||||
m_canvas->SetSwapInterval(-1);
|
||||
else
|
||||
m_canvas->SetSwapInterval(gm->vsync); // VSYNC_OFF == 0, VSYNC_ON == 1, so this works
|
||||
m_canvas->SetSwapInterval(!gm->vsync); // VSYNC_OFF == 1, VSYNC_ON == 0, so this works
|
||||
|
||||
m_canvas->Init();
|
||||
if (gm->flag & GAME_SHOW_MOUSE)
|
||||
|
Reference in New Issue
Block a user