From 2d13ff7aacc415dd046c0e092dd2aad995722b73 Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 18 Nov 2016 22:39:26 +0100 Subject: [PATCH] Revert "Utility/Formats: STBLoader will now convert the image to RGB8 if it has no alpha value" This reverts commit c523e3cde5de3f8db54b8e8736154babe1f295c1. --- src/Nazara/Utility/Formats/STBLoader.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Nazara/Utility/Formats/STBLoader.cpp b/src/Nazara/Utility/Formats/STBLoader.cpp index 42f720abf..3ca5b3708 100644 --- a/src/Nazara/Utility/Formats/STBLoader.cpp +++ b/src/Nazara/Utility/Formats/STBLoader.cpp @@ -82,12 +82,6 @@ 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; }