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
This commit is contained in:
shadowislord 2015-02-07 19:12:38 -05:00
parent 6350ac3aad
commit a4d06305d5

View File

@ -60,7 +60,7 @@ public class Texture2D extends Texture {
public Texture2D(Image img){ public Texture2D(Image img){
super(); super();
setImage(img); setImage(img);
if (img.getFormat().isDepthFormat()){ if (img.getData(0) == null) {
setMagFilter(MagFilter.Nearest); setMagFilter(MagFilter.Nearest);
setMinFilter(MinFilter.NearestNoMipMaps); setMinFilter(MinFilter.NearestNoMipMaps);
} }