Przeglądaj źródła

Reset texture state

Jesse van den Kieboom 9 lat temu
rodzic
commit
de61a95cef
1 zmienionych plików z 3 dodań i 0 usunięć
  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;