mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
NanoVG: Added ability to pass custom allocator.
This commit is contained in:
@@ -468,7 +468,7 @@ struct Imgui
|
||||
|
||||
IMGUI_create(_data, _size, _fontSize, m_allocator);
|
||||
|
||||
m_nvg = nvgCreate(1, m_view);
|
||||
m_nvg = nvgCreate(1, m_view, m_allocator);
|
||||
nvgCreateFontMem(m_nvg, "default", (unsigned char*)_data, INT32_MAX, 0);
|
||||
nvgFontSize(m_nvg, _fontSize);
|
||||
nvgFontFace(m_nvg, "default");
|
||||
|
||||
Reference in New Issue
Block a user