Explorar el Código

Reset texture state

Jesse van den Kieboom hace 10 años
padre
commit
de61a95cef
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;

粤ICP备19079148号