Browse Source

Merge pull request #11477 from 06wj/patch-attribute

fix WebGLAttributes.remove bug
Mr.doob 8 years ago
parent
commit
5f99b586e6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/renderers/webgl/WebGLAttributes.js

+ 2 - 0
src/renderers/webgl/WebGLAttributes.js

@@ -107,6 +107,8 @@ function WebGLAttributes( gl ) {
 
 
 	function remove( attribute ) {
 	function remove( attribute ) {
 
 
+		if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data;
+		
 		var data = buffers[ attribute.uuid ];
 		var data = buffers[ attribute.uuid ];
 
 
 		if ( data ) {
 		if ( data ) {