mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
vulkan: fix crash
This commit is contained in:
@@ -1100,9 +1100,11 @@ void Window::setVSync(int vsync)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LOVE_GRAPHICS_VULKAN
|
#ifdef LOVE_GRAPHICS_VULKAN
|
||||||
// TODO: this doesn't update the swap-chain, but it should.
|
if (windowRenderer == love::graphics::RENDERER_VULKAN)
|
||||||
|
{
|
||||||
auto vgfx = dynamic_cast<love::graphics::vulkan::Graphics*>(graphics.get());
|
auto vgfx = dynamic_cast<love::graphics::vulkan::Graphics*>(graphics.get());
|
||||||
vgfx->setVsync(vsync);
|
vgfx->setVsync(vsync);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LOVE_GRAPHICS_METAL) && defined(LOVE_MACOS)
|
#if defined(LOVE_GRAPHICS_METAL) && defined(LOVE_MACOS)
|
||||||
|
|||||||
Reference in New Issue
Block a user