Skip to content

Commit

Permalink
Fix the mess with DXT1/5
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Nov 19, 2014
1 parent b897174 commit 71ed3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DatabaseLoaderTexture_DDS.cs
Expand Up @@ -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)
{
Expand Down

0 comments on commit 71ed3ba

Please sign in to comment.