Fix bug where we were writing ARGB instead of RGBA, again a victim of stupid block stream ordering.

This commit is contained in:
Pavel Krajcevski 2013-10-11 20:53:22 -04:00
parent a2bf21e515
commit e2be925265

View File

@ -62,5 +62,5 @@ uint32 ImageWriter::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) {
// There are 16 pixels per block...
uint32 dataOffset = blockIdx * 16 + pixelOffset;
return m_Pixels[dataOffset].Component(ch);
return m_Pixels[dataOffset].Component((ch+1) % 4);
}