mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-11 03:25:25 +00:00
Cleanup.
This commit is contained in:
@@ -451,6 +451,19 @@ namespace entry
|
||||
return &s_allocator;
|
||||
}
|
||||
|
||||
void* TinyStlAllocator::static_allocate(size_t _bytes)
|
||||
{
|
||||
return BX_ALLOC(getAllocator(), _bytes);
|
||||
}
|
||||
|
||||
void TinyStlAllocator::static_deallocate(void* _ptr, size_t /*_bytes*/)
|
||||
{
|
||||
if (NULL != _ptr)
|
||||
{
|
||||
BX_FREE(getAllocator(), _ptr);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace entry
|
||||
|
||||
extern "C" bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset)
|
||||
|
||||
Reference in New Issue
Block a user