mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
IMGUI: Fix memory allocator mismatch
This commit is contained in:
parent
4d438a808d
commit
2f6dac578d
@ -90,7 +90,7 @@ ImFont *addTTFFontFromArchive(const char *filename, float size_pixels, const ImF
|
||||
|
||||
uint size = f.size();
|
||||
|
||||
uint8 *ttfFile = new uint8[size];
|
||||
uint8 *ttfFile = (uint8 *)ImGui::MemAlloc(size);
|
||||
f.read(ttfFile, size);
|
||||
ImGuiIO &io = ImGui::GetIO();
|
||||
return io.Fonts->AddFontFromMemoryTTF(ttfFile, size, size_pixels, font_cfg_template, glyph_ranges);
|
||||
|
Loading…
Reference in New Issue
Block a user