diff options
author | Brian Paul <[email protected]> | 2009-03-12 09:30:08 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-03-12 09:30:08 -0600 |
commit | 862dccd56054196dc5adf1377f682d0138fa1789 (patch) | |
tree | e6b0891aead3f1719ffa665dda0d989a2ebc478f /src/mesa/main/texformat_tmp.h | |
parent | 4626e57e176c54219d32f3b244f30c8bf0f3f249 (diff) |
mesa: fix transposed red/blue in store_texel_rgb888/bgr888() functions
Diffstat (limited to 'src/mesa/main/texformat_tmp.h')
-rw-r--r-- | src/mesa/main/texformat_tmp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/texformat_tmp.h b/src/mesa/main/texformat_tmp.h index f9f9d5b1f8e..d5f0b761e7d 100644 --- a/src/mesa/main/texformat_tmp.h +++ b/src/mesa/main/texformat_tmp.h @@ -719,9 +719,9 @@ static void store_texel_rgb888(struct gl_texture_image *texImage, { const GLubyte *rgba = (const GLubyte *) texel; GLubyte *dst = TEXEL_ADDR(GLubyte, texImage, i, j, k, 3); - dst[0] = rgba[RCOMP]; + dst[0] = rgba[BCOMP]; dst[1] = rgba[GCOMP]; - dst[2] = rgba[BCOMP]; + dst[2] = rgba[RCOMP]; } #endif @@ -745,9 +745,9 @@ static void store_texel_bgr888(struct gl_texture_image *texImage, { const GLubyte *rgba = (const GLubyte *) texel; GLubyte *dst = TEXEL_ADDR(GLubyte, texImage, i, j, k, 3); - dst[0] = rgba[BCOMP]; + dst[0] = rgba[RCOMP]; dst[1] = rgba[GCOMP]; - dst[2] = rgba[RCOMP]; + dst[2] = rgba[BCOMP]; } #endif |