Utility/SimpleTextDrawer: Whitespaces are now glyphs too

This commit is contained in:
Lynix
2016-10-28 17:44:59 +02:00
parent a4eccc9fac
commit 736b31af1b
2 changed files with 58 additions and 42 deletions

View File

@@ -149,6 +149,8 @@ namespace Nz
for (unsigned int i = 0; i < glyphCount; ++i)
{
const AbstractTextDrawer::Glyph& glyph = drawer.GetGlyph(i);
if (!glyph.atlas)
continue;
Texture* texture = static_cast<Texture*>(glyph.atlas);
if (lastTexture != texture)