[client] renderers: only rebuild the font atlas if marked dirty

This commit is contained in:
Geoffrey McRae
2026-07-30 12:48:30 +10:00
parent 9657ac7aa2
commit f5dee45adc
6 changed files with 35 additions and 11 deletions

View File

@@ -106,6 +106,7 @@ struct AppState
int windowW, windowH;
int windowCX, windowCY;
double windowScale;
double fontScale;
LG_RendererRotate rotate;
bool focused;
struct Border border;
@@ -120,6 +121,7 @@ struct AppState
LG_Renderer * lgr;
atomic_int lgrResize;
atomic_bool fontDirty;
LG_Lock lgrLock;
bool useDMA;