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

WebGLRenderer: Fixed disableAttributes disabling strings instead of integers.

上级 c3eff75e
......@@ -3018,12 +3018,12 @@ THREE.WebGLRenderer = function ( parameters ) {
function disableAttributes() {
for ( var attribute in _enabledAttributes ) {
for ( var i = 0, l = _enabledAttributes.length; i < l; i ++ ) {
if ( _enabledAttributes[ attribute ] === 1 ) {
if ( _enabledAttributes[ i ] === 1 ) {
_gl.disableVertexAttribArray( attribute );
_enabledAttributes[ attribute ] = 0;
_gl.disableVertexAttribArray( i );
_enabledAttributes[ i ] = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册