mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Implemented @banaadams's custom attributes removal to WebGLRenderer.
This commit is contained in:
@@ -453,6 +453,17 @@ THREE.WebGLRenderer = function ( parameters ) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
if ( geometryGroup.__webglCustomAttributesList ) {
|
||||
|
||||
for ( var id in geometryGroup.__webglCustomAttributesList ) {
|
||||
|
||||
_gl.deleteBuffer( geometryGroup.__webglCustomAttributesList[ id ].buffer );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_this.info.memory.geometries --;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user