diff options
author | Dave Airlie <[email protected]> | 2009-07-12 12:13:40 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-07-12 12:13:40 +1000 |
commit | b06cb372bf59f06f51af40572917d4cd94346f90 (patch) | |
tree | cd19624c02cf470c313846b63b9d7d606c8c4c2d | |
parent | 65059606e9a0039fc962869857c5f00a11d6b7cc (diff) |
radeon: fbo fix firecube crashes
it might still be misrendering not sure
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_fbo.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index dedd6c81628..1f4fad30c7c 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -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; |