[Mesa-dev] [PATCH] mesa: fix copy & paste bugs in pack_ubyte_SRGB8()
Roland Scheidegger
sroland at vmware.com
Thu Mar 6 10:35:01 PST 2014
Am 06.03.2014 19:25, schrieb Brian Paul:
> Cc: "10.0" "10.1" <mesa-stable at lists.freedesktop.org>
> ---
> src/mesa/main/format_pack.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c
> index e0d2a18..89958f7 100644
> --- a/src/mesa/main/format_pack.c
> +++ b/src/mesa/main/format_pack.c
> @@ -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
>
Looks good (the other fix too).
Roland
More information about the mesa-dev
mailing list