mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 08:25:37 +01:00
Fix bug where we were writing ARGB instead of RGBA, again a victim of stupid block stream ordering.
This commit is contained in:
parent
a2bf21e515
commit
e2be925265
@ -62,5 +62,5 @@ uint32 ImageWriter::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) {
|
|||||||
// There are 16 pixels per block...
|
// There are 16 pixels per block...
|
||||||
uint32 dataOffset = blockIdx * 16 + pixelOffset;
|
uint32 dataOffset = blockIdx * 16 + pixelOffset;
|
||||||
|
|
||||||
return m_Pixels[dataOffset].Component(ch);
|
return m_Pixels[dataOffset].Component((ch+1) % 4);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user