mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +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;
|
swapchainOutOfDate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vulkanAvailable)
|
// Check that window was not closed before drawing to it
|
||||||
|
if (vulkanAvailable && window.isOpen())
|
||||||
{
|
{
|
||||||
// Update the uniform buffer (matrices)
|
// Update the uniform buffer (matrices)
|
||||||
updateUniformBuffer(clock.getElapsedTime().asSeconds());
|
updateUniformBuffer(clock.getElapsedTime().asSeconds());
|
||||||
|
Loading…
Reference in New Issue
Block a user