projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d3a21c
)
mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2
author
Brian Paul
<brianp@vmware.com>
Fri, 16 Dec 2011 15:44:43 +0000
(08:44 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 16 Dec 2011 15:44:43 +0000
(08:44 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/texformat.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texformat.c
b/src/mesa/main/texformat.c
index c776b416098a955351553718810eb9fc8398f4ae..7e60541c38927b74f200b9fc2dc332ac037776d8 100644
(file)
--- a/
src/mesa/main/texformat.c
+++ b/
src/mesa/main/texformat.c
@@
-118,6
+118,8
@@
_mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
break;
case GL_R3_G3_B2:
RETURN_IF_SUPPORTED(MESA_FORMAT_RGB332);
+ RETURN_IF_SUPPORTED(MESA_FORMAT_RGB565);
+ RETURN_IF_SUPPORTED(MESA_FORMAT_RGB565_REV);
RETURN_IF_SUPPORTED(MESA_FORMAT_RGB888);
RETURN_IF_SUPPORTED(MESA_FORMAT_XRGB8888);
RETURN_IF_SUPPORTED(MESA_FORMAT_ARGB8888);