mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
mesa: fix copy & paste bugs in pack_ubyte_SRGB8()
Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
9493fc729e
commit
1e25aa4cdb
1 changed files with 2 additions and 2 deletions
|
|
@ -1044,8 +1044,8 @@ pack_ubyte_SRGB8(const GLubyte src[4], void *dst)
|
|||
{
|
||||
GLubyte *d = ((GLubyte *) dst);
|
||||
d[2] = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
|
||||
d[1] = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
|
||||
d[0] = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
|
||||
d[1] = linear_ubyte_to_srgb_ubyte(src[GCOMP]);
|
||||
d[0] = linear_ubyte_to_srgb_ubyte(src[BCOMP]);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue