Browse Source

[BUGFIX] Fix an allocation error

Panagiotis Christopoulos Charitos 8 years ago
parent
commit
9962c09166
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/anki/gr/gl/GrManagerImpl.cpp

+ 1 - 2
src/anki/gr/gl/GrManagerImpl.cpp

@@ -31,8 +31,7 @@ GrManagerImpl::~GrManagerImpl()
 
 
 Error GrManagerImpl::init(GrManagerInitInfo& init, GrAllocator<U8> alloc)
 Error GrManagerImpl::init(GrManagerInitInfo& init, GrAllocator<U8> alloc)
 {
 {
-	m_alloc = HeapAllocator<U8>(init.m_allocCallback, init.m_allocCallbackUserData);
-
+	m_alloc = alloc;
 	m_cacheDir.create(m_alloc, init.m_cacheDirectory);
 	m_cacheDir.create(m_alloc, init.m_cacheDirectory);
 
 
 	m_debugMarkers = init.m_config->getNumber("window.debugMarkers");
 	m_debugMarkers = init.m_config->getNumber("window.debugMarkers");