From 71ed3ba08f98a82a265841575ca0e18a93265778 Mon Sep 17 00:00:00 2001 From: Sarbian Date: Wed, 19 Nov 2014 19:37:59 +0100 Subject: [PATCH] Fix the mess with DXT1/5 --- DatabaseLoaderTexture_DDS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DatabaseLoaderTexture_DDS.cs b/DatabaseLoaderTexture_DDS.cs index 3647e01..d48966e 100644 --- a/DatabaseLoaderTexture_DDS.cs +++ b/DatabaseLoaderTexture_DDS.cs @@ -189,7 +189,7 @@ public static GameDatabase.TextureInfo LoadDDS(string path, bool keepReadable = byte[] dxtBytes = reader.ReadBytes((int)dxtBytesLength); // Swap red and blue. - if (bgr888) + if (!isCompressed && bgr888) { for (uint i = 0; i < dxtBytes.Length; i += pixelSize) {