Browse Source

fix: Don't generate mipmaps if texture float filtering is disabled

Nicolas 7 năm trước cách đây
mục cha
commit
8c440eac11
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Materials/Textures/babylon.hdrCubeTexture.ts

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

@@ -118,7 +118,7 @@ module BABYLON {
             this._onError = onError;
             this.gammaSpace = gammaSpace;
 
-            this._noMipmap = noMipmap;
+            this._noMipmap = noMipmap || !scene.getEngine()._caps.textureFloatLinearFiltering;
             this._size = size;
 
             this._texture = this._getFromCache(url, this._noMipmap);