diff --git a/src/i965_render.c b/src/i965_render.c index 3b0ee35..150df2e 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -1487,8 +1487,7 @@ i965_composite(PixmapPtr pDst, int srcX, int srcY, int maskX, int maskY, /* If the vertex buffer is too full, then we flush and re-emit all * necessary state into the batch for the composite operation. */ if (render_state->vb_offset + VERTEX_FLOATS_PER_COMPOSITE > VERTEX_BUFFER_SIZE) { - dri_bo_unreference (render_state->vertex_buffer_bo); - render_state->vertex_buffer_bo = NULL; + intel_batch_flush(pScrn, FALSE); } if (render_state->vertex_buffer_bo == NULL)