瀏覽代碼

One more fix

Gary Hsu 7 年之前
父節點
當前提交
58e71cf592
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Materials/Textures/babylon.internalTexture.ts

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

@@ -358,7 +358,7 @@ module BABYLON {
                 case InternalTexture.DATASOURCE_CUBERAW:
                 case InternalTexture.DATASOURCE_CUBERAW_RGBD:
                     proxy = this._engine.createRawCubeTexture(null, this.width, this.format, this.type, this.generateMipMaps, this.invertY, this.samplingMode, this._compression);
-                    if (this._dataSource) {
+                    if (this._dataSource === InternalTexture.DATASOURCE_CUBERAW_RGBD) {
                         RawCubeTexture._UpdateRGBDAsync(proxy, this._bufferViewArrayArray!, this._sphericalPolynomial, this._lodGenerationScale, this._lodGenerationOffset);
                     }
                     proxy._swapAndDie(this);