Fix readBlock. Fixes issue 145.
This commit is contained in:
parent
a4356caefe
commit
47df8ff7d6
@ -1276,16 +1276,13 @@ void DirectDrawSurface::readBlock(ColorBlock * rgba)
|
|||||||
*stream << block;
|
*stream << block;
|
||||||
block.decodeBlock(rgba);
|
block.decodeBlock(rgba);
|
||||||
}
|
}
|
||||||
else if (fourcc == FOURCC_DXT2 ||
|
else if (fourcc == FOURCC_DXT2 || fourcc == FOURCC_DXT3)
|
||||||
header.pf.fourcc == FOURCC_DXT3)
|
|
||||||
{
|
{
|
||||||
BlockDXT3 block;
|
BlockDXT3 block;
|
||||||
*stream << block;
|
*stream << block;
|
||||||
block.decodeBlock(rgba);
|
block.decodeBlock(rgba);
|
||||||
}
|
}
|
||||||
else if (fourcc == FOURCC_DXT4 ||
|
else if (fourcc == FOURCC_DXT4 || fourcc == FOURCC_DXT5 || fourcc == FOURCC_RXGB)
|
||||||
header.pf.fourcc == FOURCC_DXT5 ||
|
|
||||||
header.pf.fourcc == FOURCC_RXGB)
|
|
||||||
{
|
{
|
||||||
BlockDXT5 block;
|
BlockDXT5 block;
|
||||||
*stream << block;
|
*stream << block;
|
||||||
|
Loading…
Reference in New Issue
Block a user