Removed some artifacts when tile rendering

This commit is contained in:
alonso.torres
2025-11-06 11:46:02 +01:00
parent 445d40b71c
commit a59ce2ed16
3 changed files with 51 additions and 31 deletions

View File

@@ -1515,6 +1515,8 @@ impl RenderState {
}
self.render_in_progress = false;
self.surfaces.gc();
// Cache target surface in a texture
self.cached_viewbox = self.viewbox;
self.cached_target_snapshot = Some(self.surfaces.snapshot(SurfaceId::Cache));