mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[wpigui] Reload fonts to scale rather than preloading (#4712)
This commit is contained in:
@@ -76,6 +76,11 @@ bool gui::PlatformInitRenderer() {
|
||||
}
|
||||
|
||||
void gui::PlatformRenderFrame() {
|
||||
if (gContext->reloadFonts) {
|
||||
ImGui_ImplOpenGL3_DestroyFontsTexture();
|
||||
ImGui_ImplOpenGL3_CreateFontsTexture();
|
||||
gContext->reloadFonts = false;
|
||||
}
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
|
||||
CommonRenderFrame();
|
||||
|
||||
Reference in New Issue
Block a user