record: And remember to offset the index of unbounded playback

When we don't generate the set of visible indices, we need to iterate
over all the currently active commands and so need to offset the
iterator to the start of those commands.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-07-28 16:42:41 +01:00
parent fe34d7041a
commit 96abd9b887

View file

@ -1269,7 +1269,7 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t *surface,
}
for (i = 0; i < num_elements; i++) {
cairo_command_t *command = elements[use_indices ? surface->indices[i] : i];
cairo_command_t *command = elements[use_indices ? surface->indices[i] : i + surface->replay_start_idx];
if (! replay_all && command->header.region != region)
continue;