Skip to content

Commit

Permalink
Hotfix cached OffscreenCanvas in TextMetrics (pixijs#8318)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed May 4, 2022
1 parent f77d35d commit 2e584fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/text/src/TextMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,8 @@ export class TextMetrics

if (context && context.measureText)
{
TextMetrics.__canvas = c;

return c;
}

Expand Down

0 comments on commit 2e584fa

Please sign in to comment.