diff options
author | José Fonseca <[email protected]> | 2009-10-09 14:03:11 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-10-09 14:03:24 +0100 |
commit | 659609e0ae27071a601794935c85547e315dedeb (patch) | |
tree | fb04bb0ca77d7be2c1644ce55d66ebd55d9e2aac /src/gallium | |
parent | 4e1334ced68dd25b151250a44af25e8e0d5a33fe (diff) |
llvmpipe: Replace util_pack_color with straight float_to_ubyte.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 009c6419762..ec1027bb408 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -319,10 +319,11 @@ lp_setup_clear( struct setup_context *setup, unsigned stencil, unsigned flags ) { + unsigned i; + if (flags & PIPE_CLEAR_COLOR) { - util_pack_color(color, - setup->fb.cbuf->format, - &setup->clear.color.clear_color ); + for (i = 0; i < 4; ++i) + setup->clear.color.clear_color[i] = float_to_ubyte(color[i]); } if (flags & PIPE_CLEAR_DEPTHSTENCIL) { |