projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd776e1
)
i965: adjust the byte order of clear color. fix #14165
author
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 5 Feb 2008 07:17:58 +0000
(15:17 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 5 Feb 2008 07:17:58 +0000
(15:17 +0800)
src/mesa/drivers/dri/i965/brw_metaops.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_metaops.c
b/src/mesa/drivers/dri/i965/brw_metaops.c
index 005489689f1b6fd8b0f4ef14763ad12cc03babd1..56185dbf716ddee4634b09e0187f7d905a3a0700 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_metaops.c
+++ b/
src/mesa/drivers/dri/i965/brw_metaops.c
@@
-419,7
+419,8
@@
static void meta_draw_quad(struct intel_context *intel,
brw->metaops.vbo);
/* Convert incoming ARGB to required RGBA */
- color = (color >> 24) | (color << 8);
+ /* Note this color is stored as GL_UNSIGNED_BYTE */
+ color = (color & 0xff00ff00) | (((color >> 16) | (color << 16)) & 0xff00ff);
ctx->Driver.BufferSubData(ctx,
GL_ARRAY_BUFFER_ARB,