[Mesa-dev] [Mesa-stable] [PATCH] mesa: fix copy & paste bugs in pack_ubyte_SARGB8()

Anuj Phogat anuj.phogat at gmail.com
Thu Mar 6 10:10:37 PST 2014


On Thu, Mar 6, 2014 at 9:59 AM, Brian Paul <brianp at vmware.com> wrote:
> 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 b870001..e0d2a18 100644
> --- a/src/mesa/main/format_pack.c
> +++ b/src/mesa/main/format_pack.c
> @@ -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);
>  }
>
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-stable

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list