mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1356 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
30a649c86f
commit
d11e8789e3
2 changed files with 29 additions and 24 deletions
|
@ -5887,7 +5887,12 @@ 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
|
||||||
|
return r;
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
|
if (r == OSDCMD_OK)
|
||||||
|
{
|
||||||
if (!Bstrcasecmp(parm->name, "r_swapinterval"))
|
if (!Bstrcasecmp(parm->name, "r_swapinterval"))
|
||||||
{
|
{
|
||||||
setvsync(vsync);
|
setvsync(vsync);
|
||||||
|
@ -5911,7 +5916,7 @@ static int32_t osdcmd_cvar_set_polymost(const osdfuncparm_t *parm)
|
||||||
gltexturemode(parm);
|
gltexturemode(parm);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue