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 <mister.freeman@laposte.net>
This commit is contained in:
Brian Paul
2012-07-26 13:56:39 -06:00
parent a73e9207da
commit 0e893b4261

View File

@@ -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