@@ -5912,6 +5912,9 @@
}
else {
texture.generateMipMaps = !noMipmap;
+ if (type === Engine.TEXTURETYPE_FLOAT && !this._caps.textureFloatLinearFiltering) {
+ texture.generateMipMaps = false;
+ }
this.updateRawCubeTexture(texture, faceDataArrays, format, type, invertY);
@@ -118,7 +118,7 @@ module BABYLON {
this._onError = onError;
this.gammaSpace = gammaSpace;
- this._noMipmap = noMipmap || !scene.getEngine()._caps.textureFloatLinearFiltering;
+ this._noMipmap = noMipmap;
this._size = size;
this._texture = this._getFromCache(url, this._noMipmap);