Fix termination errors

Cleanup for objects destruction and process termination.
This is still work in progress, I don't like the way it's
handled right now.
This commit is contained in:
everyonecancode authored and Piotr Krygier committed 2025-08-29 10:02:14 +02:00
1 parent 1b5cc7a79c
commit 5ad0ac7fed
10 files changed
+38 -11

No files matched your search

+6
View File
@@ -443,3 +443,9 @@ rse_err_t descriptor_attach_buffer(struct graphics_context_t* context, struct de
return RSE_ERROR_NO_ERROR;
}
void destroy_descriptors(struct graphics_context_t* context)
{
vkDestroyDescriptorSetLayout(context->device, context->descriptor_sets->descriptor_sets_layout, NULL);
vkDestroyDescriptorPool(context->device, context->descriptor_sets->descriptor_pool, NULL);
}