From e7f905d14f9827dec0570055b785fcb392ae72ba Mon Sep 17 00:00:00 2001 From: Dedmen Miller Date: Sat, 14 Sep 2019 12:06:27 +0200 Subject: [PATCH] Fixed duplicate mipmaps if one input was compressed and the other wasn't --- MipMapTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MipMapTool.cpp b/MipMapTool.cpp index 622e462..7008815 100644 --- a/MipMapTool.cpp +++ b/MipMapTool.cpp @@ -3,7 +3,7 @@ #include "TextureFile.hpp" void printStart() { - std::cout << "MipMap Tool v5 OwO\n"; + std::cout << "MipMap Tool v6 OwO\n"; } #include void printHelp() { @@ -165,7 +165,7 @@ int main(int argc, char* argv[]) { for (auto& texture : textures) { for (auto& mipmap : texture->mipmaps) { - mipmaps.insert_or_assign(mipmap->width, mipmap); + mipmaps.insert_or_assign(mipmap->height, mipmap); } }