Преглед на файлове

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