aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-11-17 16:09:27 +0100
committerAndre Weissflog <floooh@gmail.com>2025-11-17 16:09:27 +0100
commit6176c979ef9d337aa9caee4550b87dd1c49ae8cf (patch)
tree4cfd9324d4a5fed1d6066b3a092e819668c76d8e
parentddadbaf6b3ec7db4883b79eb074580f9674593ce (diff)
sokol_app.h vk: clarify swapchain depth/msaa surface re-creation
-rw-r--r--sokol_app.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 95ba7453..0de8b000 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -4766,14 +4766,14 @@ _SOKOL_PRIVATE void _sapp_vk_create_swapchain(bool recreate) {
SOKOL_ASSERT(_sapp.vk.swapchain);
if (old_swapchain) {
- // destroy swapchain resources
+ // NOTE: destroying the depth- and msaa-surfaces happens
+ // down in the respective _sapp_vk_swapchain_create_surface() calls!
for (uint32_t i = 0; i < _sapp.vk.num_swapchain_images; i++) {
SOKOL_ASSERT(_sapp.vk.swapchain_views[i]);
vkDestroyImageView(_sapp.vk.device, _sapp.vk.swapchain_views[i], 0);
_sapp.vk.swapchain_views[i] = 0;
}
vkDestroySwapchainKHR(_sapp.vk.device, old_swapchain, 0);
- // FIXME: destroy msaa-buffer resources
}
_sapp.vk.num_swapchain_images = _SAPP_VK_MAX_SWAPCHAIN_IMAGES;