Browse Source

Fix more bugs

Panagiotis Christopoulos Charitos 3 years ago
parent
commit
fc192e5544
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AnKi/Scene/VisibilityInternal.h

+ 1 - 1
AnKi/Scene/VisibilityInternal.h

@@ -74,7 +74,7 @@ public:
 			m_elementStorage = max(kInitialStorage, m_elementStorage * kStorageGrowRate);
 			m_elementStorage = max(kInitialStorage, m_elementStorage * kStorageGrowRate);
 
 
 			const T* oldElements = m_elements;
 			const T* oldElements = m_elements;
-			m_elements = static_cast<T*>(pool.allocate(m_elementStorage, alignof(T)));
+			m_elements = static_cast<T*>(pool.allocate(m_elementStorage * sizeof(T), alignof(T)));
 
 
 			if(oldElements)
 			if(oldElements)
 			{
 			{