mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 15:15:38 +00: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 a new issue