mesa: fix copy & paste bugs in pack_ubyte_SARGB8()

Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2014-03-06 10:58:30 -07:00
parent fb78152678
commit 9493fc729e
1 changed files with 2 additions and 2 deletions

View File

@ -1090,8 +1090,8 @@ pack_ubyte_SARGB8(const GLubyte src[4], void *dst)
{
GLuint *d = ((GLuint *) dst);
GLubyte r = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
GLubyte g = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
GLubyte b = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
GLubyte g = linear_ubyte_to_srgb_ubyte(src[GCOMP]);
GLubyte b = linear_ubyte_to_srgb_ubyte(src[BCOMP]);
*d = PACK_COLOR_8888(src[ACOMP], r, g, b);
}