|
@@ -394,7 +394,8 @@
|
|
|
var stopChecking = false;
|
|
|
|
|
|
for (var kind in this._vertexBuffers) {
|
|
|
- vertexData.set(this.getVerticesData(kind), kind);
|
|
|
+ // using slice() to make a copy of the array and not just reference it
|
|
|
+ vertexData.set(this.getVerticesData(kind).slice(0), kind);
|
|
|
|
|
|
if (!stopChecking) {
|
|
|
updatable = this.getVertexBuffer(kind).isUpdatable();
|
|
@@ -729,4 +730,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|