Make ToAtlasImage a global function instead of a method on ImageDesc

This commit is contained in:
Henrik Rydgård committed 2025-09-18 11:03:50 -06:00
1 parent 95703d2d9c
commit ca2a7c93a0
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ Draw::Texture *GenerateUIAtlas(Draw::DrawContext *draw, Atlas *atlas) {
std::vector<AtlasImage> genAtlasImages;
genAtlasImages.reserve(ARRAY_SIZE(imageDescs));
for (int i = 0; i < ARRAY_SIZE(imageDescs); i++) {
genAtlasImages.push_back(imageDescs[i].ToAtlasImage(resultIds[i], (float)dest.width(), (float)dest.height(), results));
genAtlasImages.push_back(ToAtlasImage(resultIds[i], imageDescs[i].name, (float)dest.width(), (float)dest.height(), results));
}
atlas->Clear();