You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
Fix squish RGTC_R decompression corruption
This commit is contained in:
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 );
|
||||
|
||||
Reference in New Issue
Block a user