radeon_fbo: switch short to byte for 565
authorDave Airlie <airlied@redhat.com>
Sat, 8 Aug 2009 10:05:11 +0000 (20:05 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Aug 2009 09:58:11 +0000 (19:58 +1000)
src/mesa/drivers/dri/radeon/radeon_fbo.c

index 322f510f16d619585016cb2dc17e33602cdcb317..f05b106aaf84ab0c42a33b02d69fb8b93e3a41b7 100644 (file)
@@ -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) {