提交 7954889f 编写于 作者: M Mr.doob

WebGLState: Code clean up. See #6637.

上级 8e0e3ef8
......@@ -423,10 +423,12 @@ THREE.WebGLState = function ( gl, paramThreeToGL ) {
for ( var i = 0; i < enabledAttributes.length; i ++ ) {
if ( enabledAttributes[ i ] ) {
if ( enabledAttributes[ i ] === 1 ) {
gl.disableVertexAttribArray( i );
enabledAttributes[ i ] = 0;
}
enabledAttributes[ i ] = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册