diff options
author | Brian Paul <brianp@vmware.com> | 2009-03-12 09:30:08 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-03-12 09:30:08 -0600 |
commit | 862dccd56054196dc5adf1377f682d0138fa1789 (patch) | |
tree | e6b0891aead3f1719ffa665dda0d989a2ebc478f /src/mesa | |
parent | 4626e57e176c54219d32f3b244f30c8bf0f3f249 (diff) | |
download | external_mesa3d-862dccd56054196dc5adf1377f682d0138fa1789.zip external_mesa3d-862dccd56054196dc5adf1377f682d0138fa1789.tar.gz external_mesa3d-862dccd56054196dc5adf1377f682d0138fa1789.tar.bz2 |
mesa: fix transposed red/blue in store_texel_rgb888/bgr888() functions
Diffstat (limited to 'src/mesa')
-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 f9f9d5b..d5f0b76 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 |