mesa: fix error in _mesa_format_matches_format_and_type() for RGB888
authorBrian Paul <brianp@vmware.com>
Fri, 27 Jan 2012 03:01:11 +0000 (20:01 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 28 Jan 2012 01:21:43 +0000 (18:21 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/formats.c

index 96317dbf4d5cbbde1b60b94f0031165488c93e83..e14aa75abc7eab1857ed511cab1bbed6c8b2fe3f 100644 (file)
@@ -2568,7 +2568,7 @@ _mesa_format_matches_format_and_type(gl_format gl_format,
       return GL_FALSE;
 
    case MESA_FORMAT_RGB888:
-      return format == GL_RGB && type == GL_UNSIGNED_BYTE && littleEndian;
+      return format == GL_BGR && type == GL_UNSIGNED_BYTE && littleEndian;
 
    case MESA_FORMAT_BGR888:
       return GL_FALSE;