mirror of
https://github.com/AxioDL/libSquish.git
synced 2025-12-11 22:44:06 +00:00
Decompress transparent color using midpoint color
This commit is contained in:
@@ -180,7 +180,8 @@ void DecompressColourGCN( u8* rgba, void const* block )
|
|||||||
if( a <= b )
|
if( a <= b )
|
||||||
{
|
{
|
||||||
codes[8 + i] = ( u8 )( ( c + d )/2 );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user