From: Dave Airlie Date: Sat, 8 Aug 2009 10:05:11 +0000 (+1000) Subject: radeon_fbo: switch short to byte for 565 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4c95697150b8eb0bb60bb996f04be323bb56332;p=mesa.git radeon_fbo: switch short to byte for 565 --- diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index 322f510f16d..f05b106aaf8 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -407,7 +407,7 @@ restart: rrb->cpp = 2; rrb->base._ActualFormat = GL_RGB5; rrb->base._BaseFormat = GL_RGB; - rrb->base.DataType = GL_UNSIGNED_SHORT; + rrb->base.DataType = GL_UNSIGNED_BYTE; DBG("Render to RGB5 texture OK\n"); } else if (texImage->TexFormat == &_mesa_texformat_argb1555) {