Removed some code that was forcing nearest filtering for textures filtering on android

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10430 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent 304878c712
commit a5dbe2306c
  1. 24
      engine/src/android/com/jme3/asset/AndroidAssetManager.java

@ -103,27 +103,5 @@ public class AndroidAssetManager extends DesktopAssetManager {
logger.fine("AndroidAssetManager created.");
}
/**
* Loads a texture.
*
* @return the texture
*/
@Override
public Texture loadTexture(TextureKey key) {
Texture tex = (Texture) loadAsset(key);
// XXX: This will improve performance on some really
// low end GPUs (e.g. ones with OpenGL ES 1 support only)
// but otherwise won't help on the higher ones.
// Strongly consider removing this.
tex.setMagFilter(Texture.MagFilter.Nearest);
tex.setAnisotropicFilter(0);
if (tex.getMinFilter().usesMipMapLevels()) {
tex.setMinFilter(Texture.MinFilter.NearestNearestMipMap);
} else {
tex.setMinFilter(Texture.MinFilter.NearestNoMipMaps);
}
return tex;
}
}

Loading…
Cancel
Save