diff --git a/src/modules/graphics/graphics.c b/src/modules/graphics/graphics.c index 60bd935d..1c98f6a5 100644 --- a/src/modules/graphics/graphics.c +++ b/src/modules/graphics/graphics.c @@ -226,6 +226,7 @@ void lovrGraphicsCreateWindow(WindowFlags* flags) { flags->debug = state.debug; lovrAssert(!state.initialized, "Window is already created"); lovrAssert(lovrPlatformCreateWindow(flags), "Could not create window"); + lovrPlatformSetSwapInterval(flags->vsync); // Force vsync in case lovr.headset changed it in a previous restart lovrPlatformOnQuitRequest(onQuitRequest); lovrPlatformOnWindowResize(onResizeWindow); lovrPlatformGetFramebufferSize(&state.width, &state.height);