summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-10-09 14:03:11 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-10-09 14:03:24 +0100
commit659609e0ae27071a601794935c85547e315dedeb (patch)
treefb04bb0ca77d7be2c1644ce55d66ebd55d9e2aac /src
parent4e1334ced68dd25b151250a44af25e8e0d5a33fe (diff)
llvmpipe: Replace util_pack_color with straight float_to_ubyte.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c7
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 009c641976..ec1027bb40 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) {