瀏覽代碼

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

Nicolas 7 年之前
父節點
當前提交
8c440eac11
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);