From a4d06305d5a8ad590bb8e418ae737a3c2784a526 Mon Sep 17 00:00:00 2001 From: shadowislord Date: Sat, 7 Feb 2015 19:12:38 -0500 Subject: [PATCH] postprocessing target textures: always use nearest filtering * There's almost never a good reason to use linear filtering for postprocess textures * If it is really required, it should be enabled explicitly --- jme3-core/src/main/java/com/jme3/texture/Texture2D.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/texture/Texture2D.java b/jme3-core/src/main/java/com/jme3/texture/Texture2D.java index 7eba44adc..441da1353 100644 --- a/jme3-core/src/main/java/com/jme3/texture/Texture2D.java +++ b/jme3-core/src/main/java/com/jme3/texture/Texture2D.java @@ -60,7 +60,7 @@ public class Texture2D extends Texture { public Texture2D(Image img){ super(); setImage(img); - if (img.getFormat().isDepthFormat()){ + if (img.getData(0) == null) { setMagFilter(MagFilter.Nearest); setMinFilter(MinFilter.NearestNoMipMaps); }