diff --git a/polymer/build/src/config.c b/polymer/build/src/config.c index 86fd055b4..9d5950bf9 100644 --- a/polymer/build/src/config.c +++ b/polymer/build/src/config.c @@ -153,6 +153,9 @@ if (readconfig(fp, "renderer", val, VL) > 0) { i = Batoi(val); setrendermode(i); glusetexcompr = glusetexcache = glusetexcachecompression = 1; else glusetexcache = glusetexcachecompression = 0; } + if (readconfig(fp, "gltexfiltermode", val, VL) > 0) { + gltexfiltermode = Batoi(val); + } #endif option[0] = 1; // vesa all the way... @@ -219,6 +222,7 @@ int writesetup(const char *fn) "; OpenGL mode options\n" "glusetexcache = %ld\n" "glusetexcachecompression = %ld\n" + "gltexfiltermode = %ld\n" "\n" #endif #ifdef RENDERTYPEWIN @@ -300,7 +304,7 @@ int writesetup(const char *fn) forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame, #if defined(POLYMOST) && defined(USE_OPENGL) - glusetexcache, glusetexcachecompression, + glusetexcache, glusetexcachecompression, gltexfiltermode, #endif #ifdef RENDERTYPEWIN maxrefreshfreq, diff --git a/polymer/build/src/polymost.c b/polymer/build/src/polymost.c index 021b8976f..1ddcd2aa9 100644 --- a/polymer/build/src/polymost.c +++ b/polymer/build/src/polymost.c @@ -127,7 +127,7 @@ static struct glfiltermodes { long glanisotropy = 1; // 0 = maximum supported by card long glusetexcompr = 1; -long gltexfiltermode = 3; // GL_LINEAR_MIPMAP_NEAREST +long gltexfiltermode = GL_NEAREST; long glusetexcache = 0; long glusetexcachecompression = 1; long glmultisample = 0, glnvmultisamplehint = 0;