Gary Hsu il y a 7 ans
Parent
commit
94b760fe3d
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/Engine/babylon.engine.ts

+ 1 - 2
src/Engine/babylon.engine.ts

@@ -5857,7 +5857,6 @@
             this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP, null);
 
             // this.resetTextureCache();
-
             texture.isReady = true;
         }
 
@@ -5907,7 +5906,7 @@
 
             // Upload data if needed. The texture won't be ready until then.
             if (data) {
-                this.updateRawCubeTexture(texture, data as ArrayBufferView[], format, type, invertY, compression);
+                this.updateRawCubeTexture(texture, data, format, type, invertY, compression);
             }
 
             this._bindTextureDirectly(this._gl.TEXTURE_CUBE_MAP, texture, true);