diff --git a/src/Nazara/Utility/Formats/STBLoader.cpp b/src/Nazara/Utility/Formats/STBLoader.cpp index 3ca5b3708..42f720abf 100644 --- a/src/Nazara/Utility/Formats/STBLoader.cpp +++ b/src/Nazara/Utility/Formats/STBLoader.cpp @@ -82,6 +82,12 @@ namespace Nz if (parameters.loadFormat != PixelFormatType_Undefined) image->Convert(parameters.loadFormat); + else + { + // Optimize memory usage if possible + if (!image->HasAlpha()) + image->Convert(PixelFormatType_RGB8); + } return true; }