diff --git a/src/Nazara/Graphics/TextSprite.cpp b/src/Nazara/Graphics/TextSprite.cpp index 0bf987118..7e8402e20 100644 --- a/src/Nazara/Graphics/TextSprite.cpp +++ b/src/Nazara/Graphics/TextSprite.cpp @@ -108,6 +108,8 @@ namespace Nz for (std::size_t i = 0; i < glyphCount; ++i) { const AbstractTextDrawer::Glyph& glyph = drawer.GetGlyph(i); + if (!glyph.atlas) + continue; Texture* texture = static_cast(glyph.atlas); if (lastTexture != texture)