mesa: fix MESA_FORMAT_RG88 format match test
authorBrian Paul <brianp@vmware.com>
Tue, 29 Nov 2011 14:26:37 +0000 (07:26 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Nov 2011 13:57:37 +0000 (06:57 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/formats.c

index 6709ef5a82e32f96ca0a47de57b91dc55139c2c2..873fedc653987adda46d90a23b35d8a9ab96fc48 100644 (file)
@@ -2599,7 +2599,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;