mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Mapster32: don't produce erratic behavior w/ crash when not in 3D mode.
Also, BUILD_LUNATIC. git-svn-id: https://svn.eduke32.com/eduke32@4148 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
42f66ce9ca
commit
b1d6a97db4
1 changed files with 6 additions and 2 deletions
|
@ -5066,14 +5066,18 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm)
|
|||
}
|
||||
else if (!Bstrcasecmp(parm->name, "r_downsize"))
|
||||
{
|
||||
if (r_downsize != r_downsizevar && r_downsizevar != -1)
|
||||
if (r_downsizevar == -1)
|
||||
r_downsizevar = r_downsize;
|
||||
|
||||
if (in3dmode() && r_downsize != r_downsizevar)
|
||||
{
|
||||
texcache_invalidate();
|
||||
resetvideomode();
|
||||
if (setgamemode(fullscreen,xdim,ydim,bpp))
|
||||
OSD_Printf("restartvid: Reset failed...\n");
|
||||
}
|
||||
else r_downsizevar = r_downsize;
|
||||
|
||||
r_downsizevar = r_downsize;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue