Minor fixes

This commit is contained in:
SirLynix
2023-11-15 08:07:06 +01:00
parent 5e643bca7b
commit ddf0dc88bc
2 changed files with 7 additions and 3 deletions

View File

@@ -49,10 +49,14 @@ namespace Nz
else
{
// At least one font is using this atlas, remove our glyphes
for (auto&& [_, glyphMap] : m_glyphes)
for (auto&& [glyphKey, glyphMap] : m_glyphes)
{
for (auto&& [_, glyph] : glyphMap)
NazaraUnused(glyphKey);
for (auto&& [character, glyph] : glyphMap)
{
NazaraUnused(character);
m_atlas->Free(&glyph.atlasRect, &glyph.layerIndex, 1);
}
}
// Free all cached glyphes