mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 02:00:37 +02:00
llvmpipe: Replace util_pack_color with straight float_to_ubyte.
This commit is contained in:
parent
4e1334ced6
commit
659609e0ae
1 changed files with 4 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue