mirror of
https://github.com/penpot/penpot.git
synced 2026-03-21 09:53:29 +00:00
🐛 Fix using cache on first zoom after pan
This commit is contained in:
committed by
Alonso Torres
parent
d635f5a8dc
commit
a948e49e51
@@ -108,6 +108,10 @@ impl Surfaces {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_tiles(&mut self) {
|
||||
self.tiles.clear();
|
||||
}
|
||||
|
||||
pub fn resize(&mut self, gpu_state: &mut GpuState, new_width: i32, new_height: i32) {
|
||||
self.reset_from_target(gpu_state.create_target_surface(new_width, new_height));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user