浏览代码

Minor fixes

Gary Hsu 7 年之前
父节点
当前提交
94b760fe3d
共有 1 个文件被更改,包括 1 次插入2 次删除
  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);