Change default texture filtering mode to GL_NEAREST and add a cfg file option for it to build

git-svn-id: https://svn.eduke32.com/eduke32@238 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-07-22 03:08:46 +00:00
parent 66e597ab4f
commit 814a274d5f
2 changed files with 6 additions and 2 deletions

View file

@ -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,

View file

@ -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;