mirror of
https://github.com/penpot/penpot.git
synced 2026-06-16 12:22:22 +00:00
🐛 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:
parent
d1dd5d9016
commit
cd239d24f8
@ -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()?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user