diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index 72453d1..ece57e4 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/dri/i965/brw_clear.c @@ -228,10 +228,16 @@ brw_clear(struct gl_context *ctx, GLbitfield mask) } if (mask & BUFFER_BITS_COLOR) { - brw_blorp_clear_color(brw, fb, mask, partial_clear, - ctx->Color.sRGBEnabled); - debug_mask("blorp color", mask & BUFFER_BITS_COLOR); - mask &= ~BUFFER_BITS_COLOR; + + if (fb->Visual.doubleBufferMode == 0) { + _mesa_meta_glsl_Clear(&brw->ctx, BUFFER_BITS_COLOR); + mask &= ~BUFFER_BITS_COLOR; + } else { + brw_blorp_clear_color(brw, fb, mask, partial_clear, + ctx->Color.sRGBEnabled); + debug_mask("blorp color", mask & BUFFER_BITS_COLOR); + mask &= ~BUFFER_BITS_COLOR; + } } if (brw->gen >= 6 && (mask & BUFFER_BITS_DEPTH_STENCIL)) {