NanoVG: Added ability to pass custom allocator.

This commit is contained in:
Branimir Karadžić
2016-02-07 18:58:17 -08:00
parent a42cba815c
commit 728a8ee4e5
3 changed files with 36 additions and 27 deletions

View File

@@ -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");