mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
gallium/util: Initialize variable in util_clear.
This commit is contained in:
parent
6138145b35
commit
520955a0cd
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ util_clear(struct pipe_context *pipe,
|
|||
{
|
||||
if (buffers & PIPE_CLEAR_COLOR) {
|
||||
struct pipe_surface *ps = framebuffer->cbufs[0];
|
||||
unsigned color;
|
||||
unsigned color = 0;
|
||||
|
||||
util_pack_color(rgba, ps->format, &color);
|
||||
pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, color);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue