diff options
author | Dave Airlie <[email protected]> | 2011-12-24 19:30:26 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-12-27 10:35:09 +0000 |
commit | 157566860dee7ef4560f0f0a0a09f86b5973ed19 (patch) | |
tree | 6998480bca529649c4044f0ab9e48018eb5690dd /src | |
parent | 91d950bad1f1b94fb1751109ae8c139376f38156 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_pack_color.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h index 0bbf769a4e2..50ec226d887 100644 --- a/src/gallium/auxiliary/util/u_pack_color.h +++ b/src/gallium/auxiliary/util/u_pack_color.h @@ -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: |