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:
Brian Paul 2014-03-06 11:24:33 -07:00 committed by Carl Worth
parent 6490bdf358
commit 063f9c6aef

View file

@ -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