Fix setting unnecessarily high texture filters.

This commit is contained in:
Ben Richards 2024-02-20 13:10:08 +13:00
parent a2178c8466
commit 93b4b083f1

View file

@ -2067,7 +2067,7 @@ var WebGLRenderer = new Class({
if (scaleMode === CONST.ScaleModes.LINEAR && this.config.antialias)
{
var isCompressed = source && source.compressed;
var isMip = pow || (isCompressed && source.mipmaps.length > 1);
var isMip = (!isCompressed && pow) || (isCompressed && source.mipmaps.length > 1);
// Filters above LINEAR only work with MIPmaps.
// These are only generated for power of two (POT) textures.