Gary Hsu 7 lat temu
rodzic
commit
58e71cf592

+ 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);