ImGui: Clear memory for font after creating texture

This commit is contained in:
Connor McLaughlin
2021-01-30 14:38:58 +10:00
parent e614522de5
commit e132cac0e5
3 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,8 @@ static void ImGui_ImplDX11_CreateFontsTexture()
desc.MaxLOD = 0.f;
g_pd3dDevice->CreateSamplerState(&desc, &g_pFontSampler);
}
io.Fonts->ClearTexData();
}
bool ImGui_ImplDX11_CreateDeviceObjects()