Procházet zdrojové kódy

Merge pull request #6637 from box/disableAttribFix

Added GL call to disable attributes when reset is called. This fixes …
Ricardo Cabello před 10 roky
rodič
revize
8e0e3ef83e
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/renderers/webgl/WebGLState.js

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

@@ -423,6 +423,9 @@ THREE.WebGLState = function ( gl, paramThreeToGL ) {
 
 		for ( var i = 0; i < enabledAttributes.length; i ++ ) {
 
+			if ( enabledAttributes[ i ] ) {
+				gl.disableVertexAttribArray( i );
+			}
 			enabledAttributes[ i ] = 0;
 
 		}