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

Brian Paul brianp at vmware.com
Tue Nov 29 06:26:52 PST 2011


---
 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;
 
-- 
1.7.3.4



More information about the mesa-dev mailing list