Parcourir la source

Reset texture state

Jesse van den Kieboom il y a 9 ans
Parent
commit
de61a95cef
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/renderers/webgl/WebGLState.js

+ 3 - 0
src/renderers/webgl/WebGLState.js

@@ -668,6 +668,9 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
 
 		compressedTextureFormats = null;
 
+		currentTextureSlot = undefined;
+		currentBoundTextures = {};
+
 		currentBlending = null;
 
 		currentColorWrite = null;