🐛 Hard-clip tile atlas blit to avoid seam hairlines (#11639)

AA clip on the Current→atlas blit softens shared tile edges so
the canvas background shows through as 1px lines at the 512px
grid when tiles are composed with SrcOver.

Closes #11638
This commit is contained in:
Alejandro Alonso 2026-09-11 09:22:36 +02:00 committed by GitHub
parent 32ed9b5a08
commit ffad71bdc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,9 @@ fn draw_surface_src_rect_to_dst(
return;
}
to_canvas.save();
to_canvas.clip_rect(dst, None, true);
// Hard clip: AA softens shared tile edges so the backbuffer background
// shows through as 1px seams when tiles are composed with SrcOver.
to_canvas.clip_rect(dst, None, false);
let sx = dst.width() / src.width();
let sy = dst.height() / src.height();
to_canvas.translate((dst.left, dst.top));