mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Fix exception on Vulkan example shutdown
This change fixes exception on Vulkan example shutdown when drawing to window after it was closed.
This commit is contained in:
parent
b9da3b879c
commit
ce5d410c74
@ -2479,7 +2479,8 @@ public:
|
||||
swapchainOutOfDate = true;
|
||||
}
|
||||
|
||||
if (vulkanAvailable)
|
||||
// Check that window was not closed before drawing to it
|
||||
if (vulkanAvailable && window.isOpen())
|
||||
{
|
||||
// Update the uniform buffer (matrices)
|
||||
updateUniformBuffer(clock.getElapsedTime().asSeconds());
|
||||
|
Loading…
Reference in New Issue
Block a user