Corrects a green/blue channel swap in loadImageData
TRAC #11630
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@142 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Texture.cpp b/src/libGLESv2/Texture.cpp
index 9e203e8..6958e47 100644
--- a/src/libGLESv2/Texture.cpp
+++ b/src/libGLESv2/Texture.cpp
@@ -225,8 +225,8 @@
{
case GL_UNSIGNED_BYTE:
r = source[x * 3 + 0];
- b = source[x * 3 + 1];
- g = source[x * 3 + 2];
+ g = source[x * 3 + 1];
+ b = source[x * 3 + 2];
a = 0xFF;
break;