mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
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:
parent
fe34d7041a
commit
96abd9b887
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue