From d0b533608a4e293580b8b8fe235cf4dab7571fa2 Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Sun, 3 Nov 2019 15:49:55 +0100 Subject: [PATCH] Fixed colors of RGBA TGA not being inverted --- src/DataHandling/Texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DataHandling/Texture.cpp b/src/DataHandling/Texture.cpp index 003d030..23bf41e 100644 --- a/src/DataHandling/Texture.cpp +++ b/src/DataHandling/Texture.cpp @@ -117,6 +117,7 @@ bool Texture::load_rgba_tga(const std::string& rgb_filename, const std::string& // Now we have an RGBA image, update color_bits color_bits = 32; + invert_channels(0,2); return true; }