summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-16 08:44:43 -0700
committerBrian Paul <[email protected]>2011-12-16 08:44:43 -0700
commit2b3fdb1fae00f58dcb4db7eeeb03eb77a1ef51b2 (patch)
tree7fa7bf1f54e646f4e2235655c3d441bbf13f9386
parent3d3a21c5fa3ed6e127e85a5e1fe9f3df770f79d0 (diff)
mesa: add MESA_FORMAT_RGB565[_REV] as candidates for GL_R3_G3_B2
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/mesa/main/texformat.c2
1 files changed, 2 insertions, 0 deletions
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);