OSDN Git Service
(root)
/
android-x86
/
external-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
f9f9d5b
..
d5f0b76
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