radeonsi/gfx10: simplify a streamout loop in gfx10_emit_ngg_epilogue
[mesa.git] / src / gallium / drivers / swr / swr_clear.cpp
index 233432ee34aa9f51db74337b5b0d974237819138..3e02bda19c9b04b41462ee67231b985f1defcab9 100644 (file)
@@ -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};
    }