Skip to content

Commit

Permalink
Fix missing state reset on NoBlending (#9564) (#9839)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak authored and mrdoob committed Oct 11, 2016
1 parent ba347be commit ea22d56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/renderers/webgl/WebGLState.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,15 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
} else {

disable( gl.BLEND );

currentBlending = blending; // no blending, that is
currentBlendEquation = null;
currentBlendSrc = null;
currentBlendDst = null;
currentBlendEquationAlpha = null;
currentBlendSrcAlpha = null;
currentBlendDstAlpha = null;

return;

}
Expand Down

0 comments on commit ea22d56

Please sign in to comment.