mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added bx::Location, and removed allocator macros.
This commit is contained in:
@@ -98,7 +98,7 @@ public:
|
||||
|
||||
if (swapChainSupported)
|
||||
{
|
||||
m_bindings = (InputBinding*)BX_ALLOC(entry::getAllocator(), sizeof(InputBinding)*3);
|
||||
m_bindings = (InputBinding*)bx::alloc(entry::getAllocator(), sizeof(InputBinding)*3);
|
||||
m_bindings[0].set(entry::Key::KeyC, entry::Modifier::None, 1, cmdCreateWindow, this);
|
||||
m_bindings[1].set(entry::Key::KeyD, entry::Modifier::None, 1, cmdDestroyWindow, this);
|
||||
m_bindings[2].end();
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
}
|
||||
|
||||
inputRemoveBindings("22-windows");
|
||||
BX_FREE(entry::getAllocator(), m_bindings);
|
||||
bx::free(entry::getAllocator(), m_bindings);
|
||||
|
||||
// Cleanup.
|
||||
bgfx::destroy(m_ibh);
|
||||
|
||||
Reference in New Issue
Block a user