diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-07 11:21:54 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-04-07 11:21:54 -0400 |
| commit | 2f57eefb01c478ffe62845b8051bc82036cbb819 (patch) | |
| tree | c071d355496ade9660dcf3fac056db46d0251bfc /src/static-ui.cpp | |
| parent | 2ffd9e47e72fd30b2e64738b275b88593f08fe40 (diff) | |
pke: static-ui skip if no root nodes
Diffstat (limited to 'src/static-ui.cpp')
| -rw-r--r-- | src/static-ui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/static-ui.cpp b/src/static-ui.cpp index 7df5a34..f05a8dd 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -353,6 +353,7 @@ void pke_ui_update_instance_buffer(DynArray<pke_ui_box_instance_buffer_item> &ar void pke_ui_tick(double delta) { (void)delta; + if (pke_ui_master.h_root_boxes == 0) return; if (pke_ui_master.should_recalc_ui == true || pkeSettings.rt.was_framebuffer_resized == true) { DynArray<pke_ui_box_instance_buffer_item> arr; pke_ui_master.should_recalc_ui = false; |
