projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b019228
)
mesa: add BGR888 code in _mesa_format_matches_format_and_type()
author
Brian Paul
<brianp@vmware.com>
Fri, 27 Jan 2012 03:01:11 +0000
(20:01 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/formats.c
b/src/mesa/main/formats.c
index e14aa75abc7eab1857ed511cab1bbed6c8b2fe3f..d11b167f9006ab79462512b3c2900b73fe8879b2 100644
(file)
--- 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;