🐛 Fix transparent tile holes in viewer WASM render

Use direct backbuffer tile compositing for render_sync_shape (viewer/thumbnails)
instead of the tile texture atlas cache, which left 512×512 transparent holes.
This commit is contained in:
Alejandro Alonso 2026-06-16 09:52:19 +02:00 committed by GitHub
parent d1dd5d9016
commit cd239d24f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -970,7 +970,8 @@ impl RenderState {
// Viewer masked passes render a partial scene. Reusing the tile texture cache would
// SrcOver-blend onto textures from the previous pass and leak pixels into the blob.
if self.viewer_masked_pass() {
// `render_sync_shape` (viewer/thumbnails) uses the same direct backbuffer path.
if self.viewer_masked_pass() || self.viewer_render_root.is_some() {
// Use viewbox-aligned bounds (not grid-snapped) to match interactive-transform
// compositing and avoid a visible offset vs the DOM canvas.
let tile_rect = self.get_current_tile_bounds()?;