diff options
author | Brian <[email protected]> | 2007-12-05 14:54:19 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-12-05 14:54:19 -0700 |
commit | 146483d5412e14d6be63a9b9116ff683956ee294 (patch) | |
tree | 6d7fb54b6bd8349d72f3dec970f204648e0a00e1 | |
parent | 3eadbe64bf027b7e90167d4980e880c8a01c889f (diff) |
added PIPE_FORMAT_U_B8_G8_R8_A8 case in color_value()
-rw-r--r-- | src/mesa/state_tracker/st_cb_clear.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index 219a5afcbdd..8ac6699776b 100644 --- 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; } } |