Skip to content

Commit

Permalink
[Fix] Stencil clearing was not setting up the mask correctly (#6778)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaligursky authored and Martin Valigursky committed Jul 2, 2024
1 parent 7ae2e56 commit 60846cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/graphics/webgl/webgl-graphics-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,10 @@ class WebglGraphicsDevice extends GraphicsDevice {
this.gl.clearStencil(stencil);
this.clearStencil = stencil;
}

gl.stencilMask(0xFF);
this.stencilWriteMaskFront = 0xFF;
this.stencilWriteMaskBack = 0xFF;
}

// Clear the frame buffer
Expand Down

0 comments on commit 60846cc

Please sign in to comment.