mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2
authorBrian Paul <brianp@vmware.com>
Fri, 16 Dec 2011 15:44:43 +0000 (08:44 -0700)
committerBrian 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

index c776b416098a955351553718810eb9fc8398f4ae..7e60541c38927b74f200b9fc2dc332ac037776d8 100644 (file)
@@ -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);