diff options
author | Alex Galakhov <[email protected]> | 2011-12-19 07:40:07 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-19 07:41:06 -0700 |
commit | d334a0fb8cbb368c337858b16cb567a28a35f688 (patch) | |
tree | 5021703ae53f2704e03e5ace7c77c18c6307fe18 /src/mesa/drivers | |
parent | d6942f781f9cf741e7013f01c2af31f0a5867cc9 (diff) |
osmesa: fix RGB565 rendering
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 4 |
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; |