mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 14:08:05 +02:00
vega: fix 565 color unpacking bug
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 9d6e908f14)
This commit is contained in:
parent
7fd94900e0
commit
a211a140a6
1 changed files with 2 additions and 2 deletions
|
|
@ -526,8 +526,8 @@ void _vega_unpack_float_span_rgba(struct vg_context *ctx,
|
|||
src += offset;
|
||||
for (i = 0; i < n; ++i) {
|
||||
VGfloat clr[4];
|
||||
clr[0] = ((*src >> 10) & 31)/31.;
|
||||
clr[1] = ((*src >> 5) & 95)/95.;
|
||||
clr[0] = ((*src >> 11) & 31)/31.;
|
||||
clr[1] = ((*src >> 5) & 63)/63.;
|
||||
clr[2] = ((*src >> 0) & 31)/31.;
|
||||
clr[3] = 1.f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue