Merge pull request #129 from Rena4ka/master

Fixed constantly mipmap generation
experimental
Rémy Bouquet 11 years ago
commit d5f6058e85
  1. 2
      jme3-core/src/main/java/com/jme3/texture/Texture.java

@ -339,7 +339,7 @@ public abstract class Texture implements CloneableSmartAsset, Savable, Cloneable
"minificationFilter can not be null.");
}
this.minificationFilter = minificationFilter;
if (minificationFilter.usesMipMapLevels() && image != null && !image.isGeneratedMipmapsRequired()) {
if (minificationFilter.usesMipMapLevels() && image != null && !image.isGeneratedMipmapsRequired() && !image.hasMipmaps()) {
image.setNeedGeneratedMipmaps();
}
}

Loading…
Cancel
Save