Skip to content

Commit

Permalink
Merge pull request #20732 from webglzhang/dev
Browse files Browse the repository at this point in the history
WebGLState: Ensure reset() resets all status variables.
  • Loading branch information
mrdoob committed Nov 21, 2020
2 parents 6692211 + ac62c29 commit 16916e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/renderers/webgl/WebGLState.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,24 @@ function WebGLState( gl, extensions, capabilities ) {

currentProgram = null;

currentBlendingEnabled = null;
currentBlending = null;
currentBlendEquation = null;
currentBlendSrc = null;
currentBlendDst = null;
currentBlendEquationAlpha = null;
currentBlendSrcAlpha = null;
currentBlendDstAlpha = null;
currentPremultipledAlpha = false;

currentFlipSided = null;
currentCullFace = null;

currentLineWidth = null;

currentPolygonOffsetFactor = null;
currentPolygonOffsetUnits = null;

colorBuffer.reset();
depthBuffer.reset();
stencilBuffer.reset();
Expand Down

0 comments on commit 16916e2

Please sign in to comment.