This commit is contained in:
Branimir Karadžić 2015-01-31 22:28:51 -08:00
parent 220f57a767
commit de81071969

View file

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