diff --git a/rts/Rml/Backends/RmlUi_Backend.cpp b/rts/Rml/Backends/RmlUi_Backend.cpp index 4ac9511a5d..12fbdd2eaf 100644 --- a/rts/Rml/Backends/RmlUi_Backend.cpp +++ b/rts/Rml/Backends/RmlUi_Backend.cpp @@ -357,6 +357,9 @@ void RmlGui::RenderFrame() } #ifndef HEADLESS + if (state->contexts.empty()) + return; + RmlGui::BeginFrame(); // render back-to-front so that index 0 is atop index 1 and so on for (auto& context: std::ranges::reverse_view(state->contexts)) {