This commit is contained in:
2024-10-28 20:17:39 +01:00
parent fed7111362
commit d167538b3f
9 changed files with 73 additions and 73 deletions

View File

@@ -50,17 +50,17 @@ namespace mlx
}
#ifdef DEBUG
m_atlas.Init(vulkan_bitmap, RANGE, RANGE, VK_FORMAT_R8G8B8A8_SRGB, false, m_name + "_font_atlas");
m_atlas.Init(vulkan_bitmap, RANGE, RANGE, VK_FORMAT_R8G8B8A8_SRGB, false, m_name + "_font_atlas_" + std::to_string(m_scale));
#else
m_atlas.Init(vulkan_bitmap, RANGE, RANGE, VK_FORMAT_R8G8B8A8_SRGB, false, {});
#endif
DebugLog("Font: loaded %", m_name);
DebugLog("Font: loaded % with a scale of %", m_name, m_scale);
}
void Font::Destroy()
{
m_atlas.Destroy();
DebugLog("Font: unloaded %", m_name);
DebugLog("Font: unloaded % with a scale of %", m_name, m_scale);
}
}