summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-26 20:01:11 -0700
committerBrian Paul <[email protected]>2012-01-27 18:21:43 -0700
commit966720f507f71d2dce1f3499d7b29d98b615effe (patch)
treefc6da78a534fa5382cff3cb50ba2a6a85bfb04e7 /src/mesa
parentb019228d6bb00291315f2a4045fb30af89715433 (diff)
mesa: add BGR888 code in _mesa_format_matches_format_and_type()
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index e14aa75abc7..d11b167f900 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;