Skip to content

Commit

Permalink
Fix text and triangle uploads being dropped on canvas cache clears
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Apr 30, 2024
1 parent e617d7e commit 24501fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions wgpu/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ impl Storage {
target_size,
);

upload.text = Rc::downgrade(&cache.text);
upload.version = cache.version;
upload.transformation = new_transformation;

Expand Down
1 change: 1 addition & 0 deletions wgpu/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl Storage {
new_transformation,
);

upload.batch = Rc::downgrade(&cache.batch);
upload.version = cache.version;
upload.transformation = new_transformation;
}
Expand Down

0 comments on commit 24501fd

Please sign in to comment.