From ca62a9653fa25ab2d0154c068368705f228ed55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 14 Feb 2025 13:37:00 +0100 Subject: [PATCH] TextureTools: comment wrongly copypasted from atlasArrayPowerOfTwo(). --- src/Magnum/TextureTools/Atlas.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/TextureTools/Atlas.cpp b/src/Magnum/TextureTools/Atlas.cpp index 19a659598..76dd24536 100644 --- a/src/Magnum/TextureTools/Atlas.cpp +++ b/src/Magnum/TextureTools/Atlas.cpp @@ -314,10 +314,10 @@ bool atlasLandfillAdd(Implementation::AtlasLandfillState& state, const Container sortedFlippedSizes[i] = {sizePadded, UnsignedInt(i)}; } - /* Sort to have the highest first. Assuming the items are square, - which is checked below in the loop. It's highly likely there are many - textures of the same size, thus use a stable sort to have output - consistent across platforms. */ + /* Sort according to the preference specified in flags, but always to have + the highest first. It's highly likely there are many textures of the + same size, thus use a stable sort to have output consistent across + platforms. */ /** @todo stable_sort allocates, would be great if i could make it reuse the memory allocated for output */ if(state.flags & AtlasLandfillFlag::NarrowestFirst)