radeon: fbo fix firecube crashes
authorDave Airlie <airlied@redhat.com>
Sun, 12 Jul 2009 02:13:40 +0000 (12:13 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 12 Jul 2009 02:13:40 +0000 (12:13 +1000)
it might still be misrendering not sure

src/mesa/drivers/dri/radeon/radeon_fbo.c

index dedd6c816280d9d0bb11300d94b6204c4e0fb45b..1f4fad30c7c8b48deef08b4d4e92628fab82ab26 100644 (file)
@@ -398,6 +398,20 @@ restart:
                rrb->base.DataType = GL_UNSIGNED_SHORT;
                DBG("Render to RGB5 texture OK\n");
        }
+       else if (texImage->TexFormat == &_mesa_texformat_argb1555) {
+               rrb->cpp = 2;
+               rrb->base._ActualFormat = GL_RGB5_A1;
+               rrb->base._BaseFormat = GL_RGBA;
+               rrb->base.DataType = GL_UNSIGNED_BYTE;
+               DBG("Render to ARGB1555 texture OK\n");
+       }
+       else if (texImage->TexFormat == &_mesa_texformat_argb4444) {
+               rrb->cpp = 2;
+               rrb->base._ActualFormat = GL_RGBA4;
+               rrb->base._BaseFormat = GL_RGBA;
+               rrb->base.DataType = GL_UNSIGNED_BYTE;
+               DBG("Render to ARGB1555 texture OK\n");
+       }
        else if (texImage->TexFormat == &_mesa_texformat_z16) {
                rrb->cpp = 2;
                rrb->base._ActualFormat = GL_DEPTH_COMPONENT16;