Skip to content

Commit

Permalink
Fix infinite recursion in resizing on retina displays (fixes #327)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Nov 12, 2020
1 parent b32ff08 commit 3691159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/graphics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export namespace WebGL {
const bounds = canvas.getBoundingClientRect()

if (
this._width === widthInAppUnits &&
this._width === widthInPixels &&
this._height === heightInPixels &&
bounds.width === widthInAppUnits &&
bounds.height === heightInAppUnits
Expand Down

0 comments on commit 3691159

Please sign in to comment.