diff --git a/src/modules/window/sdl/Window.cpp b/src/modules/window/sdl/Window.cpp index 0997d1863..e405a73c8 100644 --- a/src/modules/window/sdl/Window.cpp +++ b/src/modules/window/sdl/Window.cpp @@ -1100,9 +1100,11 @@ void Window::setVSync(int vsync) } #ifdef LOVE_GRAPHICS_VULKAN - // TODO: this doesn't update the swap-chain, but it should. - auto vgfx = dynamic_cast(graphics.get()); - vgfx->setVsync(vsync); + if (windowRenderer == love::graphics::RENDERER_VULKAN) + { + auto vgfx = dynamic_cast(graphics.get()); + vgfx->setVsync(vsync); + } #endif #if defined(LOVE_GRAPHICS_METAL) && defined(LOVE_MACOS)