Skip to content

Commit

Permalink
Fixed opening extensions (closes #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Jul 6, 2024
1 parent f9cafd7 commit 09d9029
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
18 changes: 18 additions & 0 deletions src/gfx/wr/webrender/src/picture-rs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/gfx/wr/webrender/src/picture.rs b/gfx/wr/webrender/src/picture.rs
index f22bcadd0624d9a22f5c3fa318d7795e102b890f..68d1eb55abde2a9b5779b1d07c5f111f46f177a8 100644
--- a/gfx/wr/webrender/src/picture.rs
+++ b/gfx/wr/webrender/src/picture.rs
@@ -7449,7 +7449,12 @@ fn get_relative_scale_offset(
CoordinateSpaceMapping::Local => ScaleOffset::identity(),
CoordinateSpaceMapping::ScaleOffset(scale_offset) => scale_offset,
CoordinateSpaceMapping::Transform(m) => {
- ScaleOffset::from_transform(&m).expect("bug: pictures caches don't support complex transforms")
+ // Temporary fix when opening extensions (#34)
+ // TODO: Look more into this
+ ScaleOffset {
+ scale: Vector2D::new(m.m11, m.m22),
+ offset: Vector2D::new(m.m41, m.m42),
+ }
}
};

15 changes: 0 additions & 15 deletions src/gfx/wr/webrender/src/util-rs.patch

This file was deleted.

0 comments on commit 09d9029

Please sign in to comment.