mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Mapster32: save r_usenewshading in configuration file.
git-svn-id: https://svn.eduke32.com/eduke32@3313 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d975a6a24f
commit
6f1259b131
1 changed files with 4 additions and 1 deletions
|
@ -196,6 +196,8 @@ int32_t loadsetup(const char *fn)
|
||||||
glusetexcompr = !!atoi_safe(val);
|
glusetexcompr = !!atoi_safe(val);
|
||||||
if (readconfig(fp, "r_shadescale", val, VL) > 0)
|
if (readconfig(fp, "r_shadescale", val, VL) > 0)
|
||||||
shadescale = clampd(Bstrtod(val, NULL), 0.0, 10.0);
|
shadescale = clampd(Bstrtod(val, NULL), 0.0, 10.0);
|
||||||
|
if (readconfig(fp, "r_usenewshading", val, VL) > 0)
|
||||||
|
r_usenewshading = clamp(atoi_safe(val), 0, 2);
|
||||||
#endif
|
#endif
|
||||||
if (readconfig(fp, "r_usenewaspect", val, VL) > 0)
|
if (readconfig(fp, "r_usenewaspect", val, VL) > 0)
|
||||||
r_usenewaspect = !!atoi_safe(val);
|
r_usenewaspect = !!atoi_safe(val);
|
||||||
|
@ -394,6 +396,7 @@ int32_t writesetup(const char *fn)
|
||||||
"r_downsize = %d\n"
|
"r_downsize = %d\n"
|
||||||
"r_texcompr = %d\n"
|
"r_texcompr = %d\n"
|
||||||
"r_shadescale = %g\n"
|
"r_shadescale = %g\n"
|
||||||
|
"r_usenewshading = %d\n"
|
||||||
"\n"
|
"\n"
|
||||||
#endif
|
#endif
|
||||||
"; Use new aspect determination code? (classic/Polymost)\n"
|
"; Use new aspect determination code? (classic/Polymost)\n"
|
||||||
|
@ -577,7 +580,7 @@ int32_t writesetup(const char *fn)
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
usemodels, usehightile, g_lazy_tileselector,
|
usemodels, usehightile, g_lazy_tileselector,
|
||||||
glusetexcache, glusememcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr,
|
glusetexcache, glusememcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr,
|
||||||
shadescale,
|
shadescale, r_usenewshading,
|
||||||
#endif
|
#endif
|
||||||
r_usenewaspect,
|
r_usenewaspect,
|
||||||
#ifndef RENDERTYPEWIN
|
#ifndef RENDERTYPEWIN
|
||||||
|
|
Loading…
Reference in a new issue