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