Dont break text rendering if color is invalid
This commit is contained in:
parent
624c58efc3
commit
4b2446a5f4
@ -182,7 +182,7 @@ void gui::Context::DrawText(std::string_view text, const glm::vec2& pos, uint32_
|
|||||||
else if (cp >= 'a' && cp <= 'f')
|
else if (cp >= 'a' && cp <= 'f')
|
||||||
ch = cp - 'a' + 10;
|
ch = cp - 'a' + 10;
|
||||||
else
|
else
|
||||||
break;
|
ch = 0;
|
||||||
|
|
||||||
curr_color |= (ch << 16);
|
curr_color |= (ch << 16);
|
||||||
curr_color |= (ch << 20);
|
curr_color |= (ch << 20);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user