diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-05 01:08:51 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-05 01:08:51 +0000 |
commit | 8450aba6c731b20e5cd7b55f1d747f00a6523291 (patch) | |
tree | 679c8a9dcef0a44b3ed376105dbf03635deada89 /src | |
parent | f40f8bcf07bd7f496bfd3069eddfcbeb3d1bf8be (diff) |
i965: Also flush the vertex buffer when restarting the array.
As a corollary to filling one vertex array and beginning a new one is
remembering to emit the old one before overwriting...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/i965_render.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i965_render.c b/src/i965_render.c index 659e2d14..75b6eb61 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -1843,6 +1843,7 @@ i965_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY, } if (intel->floats_per_vertex != intel->last_floats_per_vertex || intel_vertex_space(intel) < 3*4*intel->floats_per_vertex) { + i965_vertex_flush(intel); intel_next_vertex(intel); i965_select_vertex_buffer(intel); intel->vertex_index = 0; |