aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 6992041a..7d79e2c6 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -11984,6 +11984,9 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateSwapchainKHR(VkDevice device, const VkSwapc
}
// Spec requires that even if CreateSwapchainKHR fails, oldSwapchain behaves as replaced.
+ if (old_swapchain_state) {
+ old_swapchain_state->replaced = true;
+ }
surface_state->old_swapchain = old_swapchain_state;
return result;