Fixed issue with decompressing DDS.

This commit is contained in:
bkaradzic
2012-05-01 20:16:59 -07:00
parent fb37505a8a
commit 48c8200ed3
3 changed files with 23 additions and 10 deletions

View File

@@ -423,10 +423,12 @@ bool parseDds(Dds& _dds, const Memory* _mem)
{
case DDPF_RGB:
blockSize *= 3;
bpp = 3;
break;
case DDPF_RGB|DDPF_ALPHAPIXELS:
blockSize *= 4;
bpp = 4;
break;
case DDPF_LUMINANCE: