projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76374e6
)
mesa: fix MESA_FORMAT_RG88 format match test
author
Brian Paul
<brianp@vmware.com>
Tue, 29 Nov 2011 14:26:37 +0000
(07:26 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 30 Nov 2011 13:57:37 +0000
(06:57 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/formats.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formats.c
b/src/mesa/main/formats.c
index 6709ef5a82e32f96ca0a47de57b91dc55139c2c2..873fedc653987adda46d90a23b35d8a9ab96fc48 100644
(file)
--- a/
src/mesa/main/formats.c
+++ b/
src/mesa/main/formats.c
@@
-2599,7
+2599,7
@@
_mesa_format_matches_format_and_type(gl_format gl_format,
case MESA_FORMAT_R8:
return format == GL_RED && type == GL_UNSIGNED_BYTE;
case MESA_FORMAT_RG88:
- return format == GL_
LUMINANCE_ALPHA
&& type == GL_UNSIGNED_BYTE && littleEndian;
+ return format == GL_
RG
&& type == GL_UNSIGNED_BYTE && littleEndian;
case MESA_FORMAT_RG88_REV:
return GL_FALSE;