projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4626e57
)
mesa: fix transposed red/blue in store_texel_rgb888/bgr888() functions
author
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 15:30:08 +0000
(09:30 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 15:30:08 +0000
(09:30 -0600)
src/mesa/main/texformat_tmp.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/texformat_tmp.h
b/src/mesa/main/texformat_tmp.h
index f9f9d5b1f8efb384038ec20e61b14c1404520f75..d5f0b761e7d8930b939a1bde3f7f7154e456da0b 100644
(file)
--- 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[
R
COMP];
+ dst[0] = rgba[
B
COMP];
dst[1] = rgba[GCOMP];
- dst[2] = rgba[
B
COMP];
+ dst[2] = rgba[
R
COMP];
}
#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[
B
COMP];
+ dst[0] = rgba[
R
COMP];
dst[1] = rgba[GCOMP];
- dst[2] = rgba[
R
COMP];
+ dst[2] = rgba[
B
COMP];
}
#endif