gallium/u_pack: fix l8/i8 pack color ub
just noticed this in passing, not sure it actually fixes any issus. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmare.com>
This commit is contained in:
parent
91d950bad1
commit
157566860d
|
@ -122,7 +122,7 @@ util_pack_color_ub(ubyte r, ubyte g, ubyte b, ubyte a,
|
|||
case PIPE_FORMAT_L8_UNORM:
|
||||
case PIPE_FORMAT_I8_UNORM:
|
||||
{
|
||||
uc->ub = a;
|
||||
uc->ub = r;
|
||||
}
|
||||
return;
|
||||
case PIPE_FORMAT_R32G32B32A32_FLOAT:
|
||||
|
|
Loading…
Reference in New Issue