Skip to content

Commit

Permalink
d3d: Convert DXT texture colors.
Browse files Browse the repository at this point in the history
Doesn't seem like this is 100% correct though, not sure.
  • Loading branch information
unknownbrackets committed Aug 25, 2014
1 parent 5e829f0 commit a533d76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPU/Directx9/TextureCacheDX9.cpp
Expand Up @@ -1166,6 +1166,7 @@ void *TextureCacheDX9::DecodeTextureLevel(GETextureFormat format, GEPaletteForma
}
}
finalBuf = tmpTexBuf32.data();
ClutConvertColors(finalBuf, finalBuf, dstFmt, bufw * h);
w = (w + 3) & ~3;
}
break;
Expand All @@ -1188,6 +1189,7 @@ void *TextureCacheDX9::DecodeTextureLevel(GETextureFormat format, GEPaletteForma
}
w = (w + 3) & ~3;
finalBuf = tmpTexBuf32.data();
ClutConvertColors(finalBuf, finalBuf, dstFmt, bufw * h);
}
break;

Expand All @@ -1209,6 +1211,7 @@ void *TextureCacheDX9::DecodeTextureLevel(GETextureFormat format, GEPaletteForma
}
w = (w + 3) & ~3;
finalBuf = tmpTexBuf32.data();
ClutConvertColors(finalBuf, finalBuf, dstFmt, bufw * h);
}
break;

Expand Down

0 comments on commit a533d76

Please sign in to comment.