mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
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:
parent
66e597ab4f
commit
814a274d5f
2 changed files with 6 additions and 2 deletions
|
@ -153,6 +153,9 @@ if (readconfig(fp, "renderer", val, VL) > 0) { i = Batoi(val); setrendermode(i);
|
||||||
glusetexcompr = glusetexcache = glusetexcachecompression = 1;
|
glusetexcompr = glusetexcache = glusetexcachecompression = 1;
|
||||||
else glusetexcache = glusetexcachecompression = 0;
|
else glusetexcache = glusetexcachecompression = 0;
|
||||||
}
|
}
|
||||||
|
if (readconfig(fp, "gltexfiltermode", val, VL) > 0) {
|
||||||
|
gltexfiltermode = Batoi(val);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
option[0] = 1; // vesa all the way...
|
option[0] = 1; // vesa all the way...
|
||||||
|
@ -219,6 +222,7 @@ int writesetup(const char *fn)
|
||||||
"; OpenGL mode options\n"
|
"; OpenGL mode options\n"
|
||||||
"glusetexcache = %ld\n"
|
"glusetexcache = %ld\n"
|
||||||
"glusetexcachecompression = %ld\n"
|
"glusetexcachecompression = %ld\n"
|
||||||
|
"gltexfiltermode = %ld\n"
|
||||||
"\n"
|
"\n"
|
||||||
#endif
|
#endif
|
||||||
#ifdef RENDERTYPEWIN
|
#ifdef RENDERTYPEWIN
|
||||||
|
@ -300,7 +304,7 @@ int writesetup(const char *fn)
|
||||||
|
|
||||||
forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame,
|
forcesetup, fullscreen, xdim2d, ydim2d, xdimgame, ydimgame, bppgame,
|
||||||
#if defined(POLYMOST) && defined(USE_OPENGL)
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
glusetexcache, glusetexcachecompression,
|
glusetexcache, glusetexcachecompression, gltexfiltermode,
|
||||||
#endif
|
#endif
|
||||||
#ifdef RENDERTYPEWIN
|
#ifdef RENDERTYPEWIN
|
||||||
maxrefreshfreq,
|
maxrefreshfreq,
|
||||||
|
|
|
@ -127,7 +127,7 @@ static struct glfiltermodes {
|
||||||
|
|
||||||
long glanisotropy = 1; // 0 = maximum supported by card
|
long glanisotropy = 1; // 0 = maximum supported by card
|
||||||
long glusetexcompr = 1;
|
long glusetexcompr = 1;
|
||||||
long gltexfiltermode = 3; // GL_LINEAR_MIPMAP_NEAREST
|
long gltexfiltermode = GL_NEAREST;
|
||||||
long glusetexcache = 0;
|
long glusetexcache = 0;
|
||||||
long glusetexcachecompression = 1;
|
long glusetexcachecompression = 1;
|
||||||
long glmultisample = 0, glnvmultisamplehint = 0;
|
long glmultisample = 0, glnvmultisamplehint = 0;
|
||||||
|
|
Loading…
Reference in a new issue