don't crash when running out of pool memory, just use btAlignedAlloc/btAlignedFree instead
This commit is contained in:
@@ -51,6 +51,11 @@ public:
|
||||
btAlignedFree( m_pool);
|
||||
}
|
||||
|
||||
int getFreeCount() const
|
||||
{
|
||||
return m_freeCount;
|
||||
}
|
||||
|
||||
void* allocate(int size)
|
||||
{
|
||||
btAssert(!size || size<=m_elemSize);
|
||||
|
||||
Reference in New Issue
Block a user