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