aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_clear.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/swr/swr_clear.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_clear.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_clear.cpp b/src/gallium/drivers/swr/swr_clear.cpp
index 233432ee34a..3e02bda19c9 100644
--- a/src/gallium/drivers/swr/swr_clear.cpp
+++ b/src/gallium/drivers/swr/swr_clear.cpp
@@ -71,7 +71,7 @@ swr_clear(struct pipe_context *pipe,
SWR_RECT clear_rect;
/* If enabled, clear to scissor; otherwise clear full surface */
if (ctx->rasterizer && ctx->rasterizer->scissor) {
- clear_rect = ctx->swr_scissor;
+ clear_rect = ctx->swr_scissors[0];
} else {
clear_rect = {0, 0, (int32_t)fb->width, (int32_t)fb->height};
}