From e2be92526593410a3e70dadfa5d26dec550a8cbc Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Fri, 11 Oct 2013 20:53:22 -0400 Subject: [PATCH] Fix bug where we were writing ARGB instead of RGBA, again a victim of stupid block stream ordering. --- IO/src/ImageWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO/src/ImageWriter.cpp b/IO/src/ImageWriter.cpp index 17e3ac8..c9a18b8 100644 --- a/IO/src/ImageWriter.cpp +++ b/IO/src/ImageWriter.cpp @@ -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); }