summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
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
commitb019228d6bb00291315f2a4045fb30af89715433 (patch)
treeb5a5a2c9702dc3035d36a6afc12b9262bc37c9b6 /src/mesa/main
parent370e5d2106c88bad0587265254edf3a8cffbaef2 (diff)
mesa: fix error in _mesa_format_matches_format_and_type() for RGB888
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-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 96317dbf4d5..e14aa75abc7 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;