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
parent c847820d
...@@ -225,8 +225,8 @@ void Texture::loadImageData(GLint xoffset, GLint yoffset, GLsizei width, GLsizei ...@@ -225,8 +225,8 @@ void Texture::loadImageData(GLint xoffset, GLint yoffset, GLsizei width, GLsizei
{ {
case GL_UNSIGNED_BYTE: case GL_UNSIGNED_BYTE:
r = source[x * 3 + 0]; r = source[x * 3 + 0];
b = source[x * 3 + 1]; g = source[x * 3 + 1];
g = source[x * 3 + 2]; b = source[x * 3 + 2];
a = 0xFF; a = 0xFF;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment