mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium: Always pass colour clear value to driver as A8R8G8B8.
This commit is contained in:
parent
da9079b936
commit
073d9a28c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue