Просмотр исходного кода

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

Nicolas 7 лет назад
Родитель
Сommit
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);