Parcourir la source

fixed error in CubeTexture.delayLoad()

Kesshi il y a 8 ans
Parent
commit
afad37d91b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Materials/Textures/babylon.cubeTexture.ts

+ 1 - 1
src/Materials/Textures/babylon.cubeTexture.ts

@@ -74,7 +74,7 @@
             this._texture = this._getFromCache(this.url, this._noMipmap);
 
             if (!this._texture) {
-                this._texture = this.getScene().getEngine().createCubeTexture(this.url, this.getScene(), this._files, this._noMipmap, this._format);
+                this._texture = this.getScene().getEngine().createCubeTexture(this.url, this.getScene(), this._files, this._noMipmap, undefined, undefined, this._format);
             }
         }