Skip to content

Commit

Permalink
Vulkan: Remove obsolete comments/vector and process destruction queue…
Browse files Browse the repository at this point in the history
… near the end of destructor
  • Loading branch information
goeiecool9999 committed Nov 4, 2024
1 parent f924e13 commit d4c4c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,6 @@ VulkanRenderer::~VulkanRenderer()
memoryManager->DeleteBuffer(m_xfbRingBuffer, m_xfbRingBufferMemory);
memoryManager->DeleteBuffer(m_occlusionQueries.bufferQueryResults, m_occlusionQueries.memoryQueryResults);
memoryManager->DeleteBuffer(m_bufferCache, m_bufferCacheMemory);
// texture memory
// todo
// upload buffers
// todo

m_padSwapchainInfo = nullptr;
m_mainSwapchainInfo = nullptr;
Expand Down Expand Up @@ -699,6 +695,8 @@ VulkanRenderer::~VulkanRenderer()
// destroy memory manager
memoryManager.reset();

ProcessDestructionQueue();

// destroy instance, devices
if (m_instance != VK_NULL_HANDLE)
{
Expand Down Expand Up @@ -1824,7 +1822,6 @@ void VulkanRenderer::ImguiEnd()
vkCmdEndRenderPass(m_state.currentCommandBuffer);
}

std::vector<LatteTextureVk*> g_imgui_textures; // TODO manage better
ImTextureID VulkanRenderer::GenerateTexture(const std::vector<uint8>& data, const Vector2i& size)
{
try
Expand Down
1 change: 0 additions & 1 deletion src/Cafe/HW/Latte/Renderer/Vulkan/VulkanSurfaceCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,5 +871,4 @@ void VulkanRenderer::surfaceCopy_cleanup()
delete i.second;
}
m_copySurfacePipelineCache = {};
// todo - cleanup other resources?
}

0 comments on commit d4c4c32

Please sign in to comment.