diff options
author | Brian Paul <[email protected]> | 2012-07-26 13:56:39 -0600 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-10-12 20:07:41 -0700 |
commit | ebaf1edfa3dfcd9ba59f72fc389a59d11110f45c (patch) | |
tree | 706fadbd66cee9590dda2fa8a10bb028c62ac1e2 /src | |
parent | 8d6a8cd89ee2e4ce69080a8a413c3c152c0b6a54 (diff) |
radeon: set swrast_renderbuffer::ColorType field when mapping renderbuffers
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=47375
NOTE: This is a candidate for the 8.0 branch.
Tested-by: Barto <[email protected]>
(cherry picked from commit 0e893b42610a2e8f2797bd7da68669dac38d9538)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_span.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_span.c b/src/mesa/drivers/dri/radeon/radeon_span.c index 1f2ba494241..b5343e59dd3 100644 --- a/src/mesa/drivers/dri/radeon/radeon_span.c +++ b/src/mesa/drivers/dri/radeon/radeon_span.c @@ -66,6 +66,8 @@ radeon_renderbuffer_map(struct gl_context *ctx, struct gl_renderbuffer *rb) rrb->base.Map = map; rrb->base.RowStride = stride; + /* No floating point color buffers, use GLubytes */ + rrb->Base.ColorType = GL_UNSIGNED_BYTE; } static void |