destroy render passes and framebuffers on exit
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8d41e2a64a
commit
3fcc940586
|
@ -4376,6 +4376,28 @@ static void VULKAN_DestroyDevice(
|
|||
NULL
|
||||
);
|
||||
|
||||
for (i = 0; i < renderer->framebufferHashArray.count; i += 1)
|
||||
{
|
||||
renderer->vkDestroyFramebuffer(
|
||||
renderer->logicalDevice,
|
||||
renderer->framebufferHashArray.elements[i].value,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
SDL_free(renderer->framebufferHashArray.elements);
|
||||
|
||||
for (i = 0; i < renderer->renderPassHashArray.count; i += 1)
|
||||
{
|
||||
renderer->vkDestroyRenderPass(
|
||||
renderer->logicalDevice,
|
||||
renderer->renderPassHashArray.elements[i].value,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
SDL_free(renderer->renderPassHashArray.elements);
|
||||
|
||||
VULKAN_INTERNAL_DestroyUniformBufferPool(renderer, renderer->vertexUniformBufferPool);
|
||||
VULKAN_INTERNAL_DestroyUniformBufferPool(renderer, renderer->fragmentUniformBufferPool);
|
||||
VULKAN_INTERNAL_DestroyUniformBufferPool(renderer, renderer->computeUniformBufferPool);
|
||||
|
|
Loading…
Reference in New Issue