mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
font rendering texture check was inverted
This commit is contained in:
parent
b31bcf86c0
commit
484da29efb
|
@ -811,7 +811,7 @@ void Batch::str(const SpriteFont& font, const String& text, const Vec2& pos, Tex
|
||||||
// It will assume it's a 1-byte ASCII char which is incorrect
|
// It will assume it's a 1-byte ASCII char which is incorrect
|
||||||
auto ch = font[text[i]];
|
auto ch = font[text[i]];
|
||||||
|
|
||||||
if (!ch.subtexture.texture || !ch.subtexture.texture->is_valid())
|
if (ch.subtexture.texture && ch.subtexture.texture->is_valid())
|
||||||
{
|
{
|
||||||
Vec2 at = offset + ch.offset;
|
Vec2 at = offset + ch.offset;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user