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:
terminx 2012-10-14 14:51:29 +00:00
parent 2d58801d8c
commit 521ee43173

View file

@ -6259,7 +6259,20 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm)
int32_t r = osdcmd_cvar_set(parm);
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;
}
#ifdef USE_OPENGL
if (r == OSDCMD_OK)