提交 8522e52f 编写于 作者: M MiiBond

Only disable attributes that were previously enabled

上级 08cc0db6
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册