Fix squish RGTC_R decompression corruption
This commit is contained in:
parent
7233bc6736
commit
433a2a6ea2
4 changed files with 127 additions and 4 deletions
4
thirdparty/squish/squish.cpp
vendored
4
thirdparty/squish/squish.cpp
vendored
|
|
@ -137,7 +137,9 @@ void Decompress( u8* rgba, void const* block, int flags )
|
|||
// decompress colour
|
||||
// -- GODOT start --
|
||||
//DecompressColour( rgba, colourBlock, ( flags & kDxt1 ) != 0 );
|
||||
if(( flags & ( kBc5 ) ) != 0)
|
||||
if(( flags & ( kBc4 ) ) != 0)
|
||||
DecompressColourBc4( rgba, colourBlock);
|
||||
else if(( flags & ( kBc5 ) ) != 0)
|
||||
DecompressColourBc5( rgba, colourBlock);
|
||||
else
|
||||
DecompressColour( rgba, colourBlock, ( flags & kDxt1 ) != 0 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue