gallium: Always pass colour clear value to driver as A8R8G8B8.
authorMichel Dänzer <michel@tungstengraphics.com>
Fri, 18 Apr 2008 12:38:06 +0000 (13:38 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Fri, 18 Apr 2008 12:38:06 +0000 (13:38 +0100)
src/mesa/state_tracker/st_cb_clear.c

index fa9f986f116d0c0cbf0aa6c3c511f6415daa9d89..6469511c6f9f0511dd2c97685a34ea372f1f4cfd 100644 (file)
@@ -406,7 +406,7 @@ clear_color_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
       /* clear whole buffer w/out masking */
       struct st_renderbuffer *strb = st_renderbuffer(rb);
       uint clearValue;
-      util_pack_color(ctx->Color.ClearColor, strb->surface->format, &clearValue);
+      util_pack_color(ctx->Color.ClearColor, PIPE_FORMAT_A8R8G8B8_UNORM, &clearValue);
       ctx->st->pipe->clear(ctx->st->pipe, strb->surface, clearValue);
    }
 }