git-svn-id: https://svn.eduke32.com/eduke32@1356 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2009-04-29 20:20:57 +00:00
parent 30a649c86f
commit d11e8789e3
2 changed files with 29 additions and 24 deletions

View file

@ -5887,7 +5887,12 @@ 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
return r;
#ifdef USE_OPENGL
if (r == OSDCMD_OK)
{
if (!Bstrcasecmp(parm->name, "r_swapinterval"))
{
setvsync(vsync);
@ -5911,7 +5916,7 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm)
gltexturemode(parm);
return r;
}
}
#endif
return r;
}