projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eadbe6
)
added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value()
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 5 Dec 2007 21:54:19 +0000
(14:54 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 5 Dec 2007 21:54:19 +0000
(14:54 -0700)
src/mesa/state_tracker/st_cb_clear.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_clear.c
b/src/mesa/state_tracker/st_cb_clear.c
index 219a5afcbdd53868b63e465ae22a00d618ca9eb9..8ac6699776b43c7c500454472c3eeff3efc9c23d 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_clear.c
+++ b/
src/mesa/state_tracker/st_cb_clear.c
@@
-69,9
+69,12
@@
color_value(GLuint pipeFormat, const GLfloat color[4])
return (r << 24) | (g << 16) | (b << 8) | a;
case PIPE_FORMAT_U_A8_R8_G8_B8:
return (a << 24) | (r << 16) | (g << 8) | b;
+ case PIPE_FORMAT_U_B8_G8_R8_A8:
+ return (b << 24) | (g << 16) | (r << 8) | a;
case PIPE_FORMAT_U_R5_G6_B5:
return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3);
default:
+ assert(0);
return 0;
}
}