From 4b2446a5f46e541e0c5c061b38c96cfe92425865 Mon Sep 17 00:00:00 2001 From: tovjemam Date: Sat, 14 Mar 2026 22:08:14 +0100 Subject: [PATCH] Dont break text rendering if color is invalid --- src/gui/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/context.cpp b/src/gui/context.cpp index 7c011a7..962d8ee 100644 --- a/src/gui/context.cpp +++ b/src/gui/context.cpp @@ -182,7 +182,7 @@ void gui::Context::DrawText(std::string_view text, const glm::vec2& pos, uint32_ else if (cp >= 'a' && cp <= 'f') ch = cp - 'a' + 10; else - break; + ch = 0; curr_color |= (ch << 16); curr_color |= (ch << 20);