Graphics: Fix issue when unregistering viewer then adding it again before resources are cleaned

This commit is contained in:
SirLynix
2024-01-14 16:01:55 +01:00
parent 5c7059c8fc
commit db83413536
4 changed files with 40 additions and 31 deletions

View File

@@ -16,6 +16,7 @@
#include <NazaraUtils/FixedVector.hpp>
#include <NazaraUtils/SparsePtr.hpp>
#include <unordered_map>
#include <vector>
namespace Nz
{
@@ -79,6 +80,7 @@ namespace Nz
};
std::size_t m_cascadeCount;
std::vector<std::unique_ptr<PerViewerData>> m_destructionQueue;
std::unordered_map<const AbstractViewer*, std::unique_ptr<PerViewerData>> m_viewerData;
ElementRendererRegistry& m_elementRegistry;
FramePipeline& m_pipeline;