Ver código fonte

[BUGFIX] Fix an allocation error

Panagiotis Christopoulos Charitos 8 anos atrás
pai
commit
9962c09166
1 arquivos alterados com 1 adições e 2 exclusões
  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)
 {
-	m_alloc = HeapAllocator<U8>(init.m_allocCallback, init.m_allocCallbackUserData);
-
+	m_alloc = alloc;
 	m_cacheDir.create(m_alloc, init.m_cacheDirectory);
 
 	m_debugMarkers = init.m_config->getNumber("window.debugMarkers");