Skip to content

Commit

Permalink
The BitmapMask wouldn't correctly set the gl viewport when binding,…
Browse files Browse the repository at this point in the history
… which caused the mask to distort in games where the canvas resizes from its default. Fix #6527
  • Loading branch information
photonstorm committed Oct 13, 2023
1 parent c3ea199 commit b28ad7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/webgl/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ var WebGLRenderer = new Class({
{
this.flush();

this.maskTarget.bind();
this.maskTarget.bind(true);

if (this.currentCameraMask.mask !== bitmapMask)
{
Expand Down

0 comments on commit b28ad7f

Please sign in to comment.