[Mesa-dev] [PATCH] mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2

Brian Paul brianp at vmware.com
Thu Dec 15 06:43:20 PST 2011


---
 src/mesa/main/texformat.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index c776b41..7e60541 100644
--- 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);
-- 
1.7.3.4



More information about the mesa-dev mailing list