|
@@ -78,7 +78,7 @@ var BABYLON;
|
|
|
};
|
|
|
DynamicTexture.prototype.clone = function () {
|
|
|
var textureSize = this.getSize();
|
|
|
- var newTexture = new DynamicTexture(this.name, textureSize.width, this.getScene(), this._generateMipMaps);
|
|
|
+ var newTexture = new DynamicTexture(this.name, textureSize, this.getScene(), this._generateMipMaps);
|
|
|
// Base texture
|
|
|
newTexture.hasAlpha = this.hasAlpha;
|
|
|
newTexture.level = this.level;
|