Module: Mesa Branch: master Commit: 966720f507f71d2dce1f3499d7b29d98b615effe URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=966720f507f71d2dce1f3499d7b29d98b615effe
Author: Brian Paul <[email protected]> Date: Thu Jan 26 20:01:11 2012 -0700 mesa: add BGR888 code in _mesa_format_matches_format_and_type() Reviewed-by: Ian Romanick <[email protected]> --- 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 e14aa75..d11b167 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -2571,7 +2571,7 @@ _mesa_format_matches_format_and_type(gl_format gl_format, return format == GL_BGR && type == GL_UNSIGNED_BYTE && littleEndian; case MESA_FORMAT_BGR888: - return GL_FALSE; + return format == GL_RGB && type == GL_UNSIGNED_BYTE && littleEndian; case MESA_FORMAT_RGB565: return format == GL_RGB && type == GL_UNSIGNED_SHORT_5_6_5; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
