summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAlex Galakhov <[email protected]>2011-12-19 07:40:07 -0700
committerBrian Paul <[email protected]>2011-12-19 07:41:06 -0700
commitd334a0fb8cbb368c337858b16cb567a28a35f688 (patch)
tree5021703ae53f2704e03e5ace7c77c18c6307fe18 /src/mesa
parentd6942f781f9cf741e7013f01c2af31f0a5867cc9 (diff)
osmesa: fix RGB565 rendering
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/osmesa/osmesa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c
index ecb7c63dab4..0e062f4fe60 100644
--- a/src/mesa/drivers/osmesa/osmesa.c
+++ b/src/mesa/drivers/osmesa/osmesa.c
@@ -989,6 +989,10 @@ new_osmesa_renderbuffer(struct gl_context *ctx, GLenum format, GLenum type)
case GL_UNSIGNED_SHORT:
rb->Format = MESA_FORMAT_RGBA_16;
break;
+ case GL_UNSIGNED_SHORT_5_6_5:
+ rb->Format = MESA_FORMAT_RGB565;
+ type = GL_UNSIGNED_BYTE;
+ break;
case GL_FLOAT:
rb->Format = MESA_FORMAT_RGBA_FLOAT32;
break;