Преглед на файлове

Merge pull request #6637 from box/disableAttribFix

Added GL call to disable attributes when reset is called. This fixes …
Ricardo Cabello преди 10 години
родител
ревизия
8e0e3ef83e
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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;
 
 		}