mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-27 20:31:02 +00:00
Fix problem that might go away with resource record shutdown order
This commit is contained in:
@@ -52,7 +52,10 @@ class VulkanResourceManager : public ResourceManager<VkResource, VkResourceRecor
|
||||
{
|
||||
while(!m_VkResourceRecords.empty())
|
||||
{
|
||||
auto it = m_VkResourceRecords.begin();
|
||||
// VKTODOLOW we pick from the end, on the assumption that in
|
||||
// namespace order (which is resource record order), later entries
|
||||
// always have parents that are earlier.
|
||||
auto it = --(m_VkResourceRecords.end());
|
||||
ResourceId id = it->second->GetResourceID();
|
||||
it->second->Delete(this);
|
||||
|
||||
|
||||
@@ -44,15 +44,15 @@ enum VkNamespace
|
||||
eResAttachmentView,
|
||||
eResFramebuffer,
|
||||
eResRenderPass,
|
||||
eResShader,
|
||||
eResShaderModule,
|
||||
eResPipeline,
|
||||
eResShader,
|
||||
eResPipelineCache,
|
||||
eResPipelineLayout,
|
||||
eResPipeline,
|
||||
eResSampler,
|
||||
eResDescriptorSet,
|
||||
eResDescriptorPool,
|
||||
eResDescriptorSetLayout,
|
||||
eResDescriptorSet,
|
||||
eResViewportState,
|
||||
eResRasterState,
|
||||
eResMSAAState,
|
||||
|
||||
Reference in New Issue
Block a user