From: Brian Paul Date: Fri, 16 Dec 2011 15:44:43 +0000 (-0700) Subject: mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b3fdb1fae00f58dcb4db7eeeb03eb77a1ef51b2;p=mesa.git mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2 Reviewed-by: Eric Anholt --- diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c index c776b416098..7e60541c389 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);