Fix issue with freeing resources
This commit is contained in:
@@ -72,9 +72,15 @@ namespace OpenVulkano::Vulkan
|
||||
|
||||
void Renderer::Close()
|
||||
{
|
||||
context.device->WaitIdle();
|
||||
for (int i = 0; i < context.swapChain.GetImageCount(); i++)
|
||||
{
|
||||
//context.device->device.destroySemaphore(waitSemaphores[i]);
|
||||
}
|
||||
uiRenderer.Close();
|
||||
resourceManager.Close();
|
||||
context.Close();
|
||||
uiRenderer.Close();
|
||||
scene = nullptr;
|
||||
}
|
||||
|
||||
std::string Renderer::GetMainRenderDeviceName()
|
||||
|
||||
Reference in New Issue
Block a user