diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index 87b664c201a..729e244ea91 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -542,8 +542,8 @@ st_Clear(struct gl_context *ctx, GLbitfield mask) const struct gl_framebuffer *fb = ctx->DrawBuffer; scissor_state.maxx = MIN2(scissor_state.maxx, fb->Width); scissor_state.maxy = MIN2(scissor_state.maxy, fb->Height); - if (scissor_state.minx == scissor_state.maxx || - scissor_state.miny == scissor_state.maxy) + if (scissor_state.minx >= scissor_state.maxx || + scissor_state.miny >= scissor_state.maxy) return; } /* We can't translate the clear color to the colorbuffer format,