mirror of
https://github.com/penpot/penpot.git
synced 2025-06-26 18:47:01 +02:00
🐛 Avoid unnecesary clone call
This commit is contained in:
parent
55d21761fc
commit
b2d6342422
3 changed files with 7 additions and 3 deletions
|
@ -484,7 +484,7 @@ impl RenderState {
|
|||
));
|
||||
|
||||
canvas.clear(self.background_color);
|
||||
canvas.draw_image(snapshot.clone(), (0, 0), Some(&skia::Paint::default()));
|
||||
canvas.draw_image(snapshot, (0, 0), Some(&skia::Paint::default()));
|
||||
canvas.restore();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue