From 2f57eefb01c478ffe62845b8051bc82036cbb819 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 7 Apr 2025 11:21:54 -0400 Subject: pke: static-ui skip if no root nodes --- src/static-ui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/static-ui.cpp') 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 &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 arr; pke_ui_master.should_recalc_ui = false; -- cgit v1.2.3