From 137ade7226af37d073a5755b90181275664dd65c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 10 Feb 2012 22:09:52 +0100 Subject: Leave the default values for OpenGL texture filters The scaled wallpaper looks quite a bit better when linear texture smoothing is applied, and I could not measure a significant difference in framerate from setting the texture filter to GL_NEAREST. Hence it seems not necessary to me to introduce the smoothing as an option. The default value for GL_TEXTURE_MIN_FILTER is GL_NEAREST_MIPMAP_LINEAR and the default for GL_TEXTURE_MAG_FILTER is GL_LINEAR. These make sure that the texture is reasonably smoothed by using the weighted average of the nearest four pixels. Reviewed-by: Erik Schilling --- src/resources/image.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 975bd647..a29d475d 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -496,8 +496,6 @@ Image *Image::_GLload(SDL_Surface *tmpImage) tmpImage->pixels); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); - glTexParameteri(mTextureType, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - glTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_NEAREST); if (SDL_MUSTLOCK(tmpImage)) SDL_UnlockSurface(tmpImage); -- cgit v1.2.3-60-g2f50