mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
vulkan: fix crash
This commit is contained in:
@@ -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<love::graphics::vulkan::Graphics*>(graphics.get());
|
||||
vgfx->setVsync(vsync);
|
||||
if (windowRenderer == love::graphics::RENDERER_VULKAN)
|
||||
{
|
||||
auto vgfx = dynamic_cast<love::graphics::vulkan::Graphics*>(graphics.get());
|
||||
vgfx->setVsync(vsync);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(LOVE_GRAPHICS_METAL) && defined(LOVE_MACOS)
|
||||
|
||||
Reference in New Issue
Block a user