mirror of
https://github.com/AxioDL/libSquish.git
synced 2025-06-30 18:33:36 +00:00
Decompress transparent color using midpoint color
This commit is contained in:
parent
b3bbfee51d
commit
96c520ed95
@ -180,7 +180,8 @@ void DecompressColourGCN( u8* rgba, void const* block )
|
||||
if( a <= b )
|
||||
{
|
||||
codes[8 + i] = ( u8 )( ( c + d )/2 );
|
||||
codes[12 + i] = 0;
|
||||
// GCN: Use midpoint RGB rather than black
|
||||
codes[12 + i] = codes[8 + i];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user