Commit 0aaa69e4 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

vk_swapchain: Silence TOCTOU race condition

It's possible that the window is resized from the moment we ask for its
size to the moment a swapchain is created, causing validation issues.

To workaround this Vulkan issue request the capabilities again just
before creating the swapchain, making the race condition less likely.
parent 01a05b48
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment