projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73e920
)
radeon: set swrast_renderbuffer::ColorType field when mapping renderbuffers
author
Brian Paul
<brianp@vmware.com>
Thu, 26 Jul 2012 19:56:39 +0000
(13:56 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 26 Jul 2012 19:59:44 +0000
(13:59 -0600)
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=47375
NOTE: This is a candidate for the 8.0 branch.
Tested-by: Barto <mister.freeman@laposte.net>
src/mesa/drivers/dri/radeon/radeon_span.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_span.c
b/src/mesa/drivers/dri/radeon/radeon_span.c
index 1f2ba49424138e22dec20e9373dbb08044b7e9a5..b5343e59dd38d51099c58bf4c890319eb70c2adc 100644
(file)
--- 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