mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Cleanup.
This commit is contained in:
parent
220f57a767
commit
de81071969
1 changed files with 2 additions and 2 deletions
|
@ -125,9 +125,9 @@ struct OcornutImguiContext
|
|||
uint8_t* data;
|
||||
int32_t width;
|
||||
int32_t height;
|
||||
void* font = malloc(_size);
|
||||
void* font = ImGui::MemAlloc(_size);
|
||||
memcpy(font, _data, _size);
|
||||
io.Fonts->AddFontFromMemoryTTF(const_cast<void*>(font), _size, _fontSize);
|
||||
io.Fonts->AddFontFromMemoryTTF(font, _size, _fontSize);
|
||||
|
||||
io.Fonts->GetTexDataAsRGBA32(&data, &width, &height);
|
||||
|
||||
|
|
Loading…
Reference in a new issue