mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 17:32:13 +00:00
Fix setting r_pr_maxlightpasses from .cfg at startup
git-svn-id: https://svn.eduke32.com/eduke32@3070 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2d58801d8c
commit
521ee43173
1 changed files with 13 additions and 0 deletions
|
@ -6259,7 +6259,20 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm)
|
||||||
int32_t r = osdcmd_cvar_set(parm);
|
int32_t r = osdcmd_cvar_set(parm);
|
||||||
|
|
||||||
if (xdim == 0 || ydim == 0 || bpp == 0) // video not set up yet
|
if (xdim == 0 || ydim == 0 || bpp == 0) // video not set up yet
|
||||||
|
{
|
||||||
|
if (r == OSDCMD_OK)
|
||||||
|
{
|
||||||
|
#ifdef POLYMER
|
||||||
|
if (!Bstrcasecmp(parm->name, "r_pr_maxlightpasses"))
|
||||||
|
{
|
||||||
|
pr_maxlightpasses = r_pr_maxlightpasses;
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
if (r == OSDCMD_OK)
|
if (r == OSDCMD_OK)
|
||||||
|
|
Loading…
Reference in a new issue