Skip to content

Commit ea22d56

Browse files
fallenoakmrdoob
authored andcommitted
Fix missing state reset on NoBlending (mrdoob#9564) (mrdoob#9839)
1 parent ba347be commit ea22d56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/renderers/webgl/WebGLState.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,15 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
509509
} else {
510510

511511
disable( gl.BLEND );
512+
512513
currentBlending = blending; // no blending, that is
514+
currentBlendEquation = null;
515+
currentBlendSrc = null;
516+
currentBlendDst = null;
517+
currentBlendEquationAlpha = null;
518+
currentBlendSrcAlpha = null;
519+
currentBlendDstAlpha = null;
520+
513521
return;
514522

515523
}

0 commit comments

Comments
 (0)