Explorar o código

Reset texture state

Jesse van den Kieboom %!s(int64=9) %!d(string=hai) anos
pai
achega
de61a95cef
Modificáronse 1 ficheiros con 3 adicións e 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;