Skip to content

Commit 9140ea5

Browse files
[vello_cpu] reset transforms when resetting the RenderContext (#1054)
Small change, but I think it's intended that all state resets when calling `.reset` on the RenderContext. This change adds resetting of the `transform` and `paint_transform` when `reset` is called.
1 parent 0551526 commit 9140ea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sparse_strips/vello_cpu/src/render.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ impl RenderContext {
333333
pub fn reset(&mut self) {
334334
self.dispatcher.reset();
335335
self.encoded_paints.clear();
336+
self.reset_transform();
337+
self.reset_paint_transform();
336338
}
337339

338340
/// Flush any pending operations.

0 commit comments

Comments
 (0)