llvmpipe: Replace util_pack_color with straight float_to_ubyte.

This commit is contained in:
José Fonseca 2009-10-09 14:03:11 +01:00
parent 4e1334ced6
commit 659609e0ae

View file

@ -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) {