summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-04 19:32:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-04-04 19:32:43 +0100
commit5982ed4da12a964351029c6f786348a11e33dc81 (patch)
tree85a2752edf45b92b97fd734c1e8d52f6944e7fab
parent6f104189bb9439ab0e05f04d4be020813eb04bf9 (diff)
i965: Always update last_floats_per_vertex
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i965_render.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index 8802e7e5..9dce3470 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -1768,8 +1768,7 @@ i965_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY,
i965_emit_composite_state(scrn);
}
- if (intel->vertex_used &&
- intel->floats_per_vertex != intel->last_floats_per_vertex) {
+ if (intel->floats_per_vertex != intel->last_floats_per_vertex) {
intel->vertex_index = (intel->vertex_used + intel->floats_per_vertex - 1) / intel->floats_per_vertex;
intel->vertex_used = intel->vertex_index * intel->floats_per_vertex;
intel->last_floats_per_vertex = intel->floats_per_vertex;