[Mesa-dev] [PATCH] mesa: fix MESA_FORMAT_RG88 format match test

Eric Anholt eric at anholt.net
Tue Nov 29 10:55:19 PST 2011


On Tue, 29 Nov 2011 07:26:52 -0700, Brian Paul <brianp at vmware.com> wrote:
> ---
>  src/mesa/main/formats.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
> index d3b12d0..9374f00 100644
> --- a/src/mesa/main/formats.c
> +++ b/src/mesa/main/formats.c
> @@ -2596,7 +2596,7 @@ _mesa_format_matches_format_and_type(gl_format gl_format,
>     case MESA_FORMAT_R8:
>        return format == GL_RED && type == GL_UNSIGNED_BYTE;
>     case MESA_FORMAT_RG88:
> -      return format == GL_LUMINANCE_ALPHA && type == GL_UNSIGNED_BYTE && littleEndian;
> +      return format == GL_RG && type == GL_UNSIGNED_BYTE && littleEndian;
>     case MESA_FORMAT_RG88_REV:
>        return GL_FALSE;

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111129/f78763f2/attachment.pgp>


More information about the mesa-dev mailing list