aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_pipe_clear.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-01-16 18:01:57 -0800
committerBrian Paul <[email protected]>2014-01-21 10:53:51 -0800
commitf6bc7d658677cd7750575147a6c50d2b681b6e35 (patch)
tree1e915dea68c1a610f4d52c3e7f85c1c769d4b5eb /src/gallium/drivers/svga/svga_pipe_clear.c
parentff59b3d9ee3204a16d991087f71808e41054cc85 (diff)
svga: fix clearing for null color buffers
Fixes piglit "fbo-drawbuffers-none glClear" test. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_clear.c')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_clear.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_clear.c b/src/gallium/drivers/svga/svga_pipe_clear.c
index 5deebb2bc9f..21869e9d6d0 100644
--- a/src/gallium/drivers/svga/svga_pipe_clear.c
+++ b/src/gallium/drivers/svga/svga_pipe_clear.c
@@ -59,12 +59,12 @@ try_clear(struct svga_context *svga,
}
}
- if ((buffers & PIPE_CLEAR_COLOR) && fb->cbufs[0]) {
+ if (buffers & PIPE_CLEAR_COLOR) {
flags |= SVGA3D_CLEAR_COLOR;
util_pack_color(color->f, PIPE_FORMAT_B8G8R8A8_UNORM, &uc);
- rect.w = fb->cbufs[0]->width;
- rect.h = fb->cbufs[0]->height;
+ rect.w = fb->width;
+ rect.h = fb->height;
}
if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) && fb->zsbuf) {