2
0
Эх сурвалжийг харах

Merge pull request #11336 from mrdoob/WestLangley-patch-WebGLState

WebGLState: handle CustomBlending case
Mr.doob 8 жил өмнө
parent
commit
d0b319a82c

+ 1 - 1
src/renderers/webgl/WebGLState.js

@@ -523,7 +523,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 		}
 
-		if ( blending !== currentBlending || premultipliedAlpha !== currentPremultipledAlpha ) {
+		if ( ( blending !== CustomBlending ) && ( blending !== currentBlending || premultipliedAlpha !== currentPremultipledAlpha ) ) {
 
 			if ( blending === AdditiveBlending ) {