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:
Brian Paul 2014-03-06 11:24:33 -07:00
parent 9493fc729e
commit 1e25aa4cdb

View file

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