mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Fix setting unnecessarily high texture filters.
This commit is contained in:
parent
a2178c8466
commit
93b4b083f1
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue