|
@@ -159,7 +159,13 @@ function WebGLGeometries( gl, attributes, info ) {
|
|
|
|
|
|
attributes.update( attribute, gl.ELEMENT_ARRAY_BUFFER );
|
|
|
|
|
|
- if ( wireframeAttributes[ geometry.id ] ) attributes.remove( wireframeAttributes[ geometry.id ] );
|
|
|
+ //
|
|
|
+
|
|
|
+ var previousAttribute = wireframeAttributes[ geometry.id ];
|
|
|
+
|
|
|
+ if ( previousAttribute ) attributes.remove( previousAttribute );
|
|
|
+
|
|
|
+ //
|
|
|
|
|
|
wireframeAttributes[ geometry.id ] = attribute;
|
|
|
|