vulkan: Fix crash when acquiring the swapchain texture of an unclaimed window
continuous-integration/drone/pr Build is passing Details

pull/46/head
Caleb Cornett 2023-09-29 20:55:10 -05:00
parent bd3d8d6fad
commit 925ab37385
1 changed files with 5 additions and 0 deletions

View File

@ -9756,6 +9756,11 @@ static Refresh_Texture* VULKAN_AcquireSwapchainTexture(
VulkanPresentData *presentData;
windowData = VULKAN_INTERNAL_FetchWindowData(windowHandle);
if (windowData == NULL)
{
return NULL;
}
swapchainData = windowData->swapchainData;
/* Window is claimed but swapchain is invalid! */