Dont break text rendering if color is invalid

This commit is contained in:
tovjemam 2026-03-14 22:08:14 +01:00
parent 624c58efc3
commit 4b2446a5f4

View File

@ -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);