[Mesa-dev] [PATCH 03/14] mesa: fix error in _mesa_format_matches_format_and_type() for RGB888

Brian Paul brianp at vmware.com
Thu Jan 26 19:04:09 PST 2012


---
 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 96317db..e14aa75 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -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;
-- 
1.7.1



More information about the mesa-dev mailing list