forked from MoonsideGames/Refresh
only mark swapchain as needing recreate if it exists
parent
cb99489b3c
commit
83c2372499
|
@ -1,4 +1,4 @@
|
||||||
/* Refresh - XNA-inspired 3D Graphics Library with modern capabilities
|
/* Refresh - XNA-inspired 3D Graphics Library with modern capabilities
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020 Evan Hemsley
|
* Copyright (c) 2020 Evan Hemsley
|
||||||
*
|
*
|
||||||
|
@ -8628,13 +8628,13 @@ static Refresh_Texture* VULKAN_AcquireSwapchainTexture(
|
||||||
|
|
||||||
vulkanCommandBuffer->signalSemaphores[vulkanCommandBuffer->signalSemaphoreCount] = swapchainData->renderFinishedSemaphore;
|
vulkanCommandBuffer->signalSemaphores[vulkanCommandBuffer->signalSemaphoreCount] = swapchainData->renderFinishedSemaphore;
|
||||||
vulkanCommandBuffer->signalSemaphoreCount += 1;
|
vulkanCommandBuffer->signalSemaphoreCount += 1;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!validSwapchainExists || acquireResult == VK_SUBOPTIMAL_KHR)
|
if (acquireResult == VK_SUBOPTIMAL_KHR)
|
||||||
{
|
{
|
||||||
swapchainData->needsRecreate = 1;
|
swapchainData->needsRecreate = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (Refresh_Texture*) swapchainTexture;
|
return (Refresh_Texture*) swapchainTexture;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue