From 4e2d8d0b8408e6054cbf7dbda15c742d8698efd7 Mon Sep 17 00:00:00 2001 From: Shootfast Date: Tue, 2 Mar 2021 16:42:25 +0000 Subject: Fixed uninitialized atomic in StateObjectsRegistry (#193) Add() method was attempting to read m_NumDeletedObjects before it was initialized. --- Graphics/GraphicsEngine/include/StateObjectsRegistry.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/StateObjectsRegistry.hpp b/Graphics/GraphicsEngine/include/StateObjectsRegistry.hpp index a2a7cad1..937e6908 100644 --- a/Graphics/GraphicsEngine/include/StateObjectsRegistry.hpp +++ b/Graphics/GraphicsEngine/include/StateObjectsRegistry.hpp @@ -66,6 +66,7 @@ public: static constexpr int DeletedObjectsToPurge = 32; StateObjectsRegistry(IMemoryAllocator& RawAllocator, const Char* RegistryName) : + m_NumDeletedObjects{0}, m_DescToObjHashMap(STD_ALLOCATOR_RAW_MEM(HashMapElem, RawAllocator, "Allocator for unordered_map >")), m_RegistryName{RegistryName} {} -- cgit v1.2.3