ImFontAtlas: doesn't clear input data, left to the application. (#224)

This commit is contained in:
ocornut
2015-05-12 15:16:12 +01:00
parent 4b088ec7e8
commit 5df542c3c0
5 changed files with 16 additions and 1 deletions

View File

@ -230,6 +230,10 @@ static void ImGui_ImplDX11_CreateFontsTexture()
samplerDesc.MaxLOD = 0.f;
g_pd3dDevice->CreateSamplerState(&samplerDesc, &g_pFontSampler);
}
// Cleanup (don't clear the input data if you want to append new fonts later)
io.Fonts->ClearInputData();
io.Fonts->ClearTexData();
}
bool ImGui_ImplDX11_CreateDeviceObjects()