From 746b308a6ea6acb42a7b226bf04e439cb68cd615 Mon Sep 17 00:00:00 2001 From: 06wj <06wj@163.com> Date: Fri, 9 Jun 2017 13:59:19 +0800 Subject: [PATCH] fix WebGLAttributes.remove bug --- src/renderers/webgl/WebGLAttributes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderers/webgl/WebGLAttributes.js b/src/renderers/webgl/WebGLAttributes.js index 88c4a5e11a..736a72a397 100644 --- a/src/renderers/webgl/WebGLAttributes.js +++ b/src/renderers/webgl/WebGLAttributes.js @@ -107,6 +107,8 @@ function WebGLAttributes( gl ) { function remove( attribute ) { + if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data; + var data = buffers[ attribute.uuid ]; if ( data ) { -- GitLab