mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02: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>
(cherry picked from commit 1e25aa4cdb)
This commit is contained in:
parent
6490bdf358
commit
063f9c6aef
1 changed files with 2 additions and 2 deletions
|
|
@ -1039,8 +1039,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