🐛 Fix using cache on first zoom after pan

This commit is contained in:
Alejandro Alonso
2025-12-30 09:25:29 +01:00
committed by Alonso Torres
parent d635f5a8dc
commit a948e49e51
4 changed files with 27 additions and 0 deletions

View File

@@ -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));
}