This commit is contained in:
Branimir Karadžić
2017-06-10 22:31:59 -07:00
parent b6ccccd4c5
commit 6a6c5e3af9
8 changed files with 10 additions and 21 deletions

View File

@@ -380,13 +380,11 @@ struct DebugDraw
m_allocator = _allocator;
m_depthTestLess = _depthTestLess;
#if BX_CONFIG_ALLOCATOR_CRT
if (NULL == _allocator)
{
static bx::CrtAllocator allocator;
static bx::DefaultAllocator allocator;
m_allocator = &allocator;
}
#endif // BX_CONFIG_ALLOCATOR_CRT
DebugVertex::init();
DebugUvVertex::init();