vid_wait_override stuff
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1921 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d09c73dfeb
commit
48d07feec4
1 changed files with 2 additions and 2 deletions
|
@ -798,7 +798,7 @@ qboolean VID_AttachGL (rendererstate_t *info)
|
|||
TRACE(("dbg: VID_AttachGL: GL_Init\n"));
|
||||
GL_Init(getglfunc);
|
||||
qwglSwapIntervalEXT = getglfunc("wglSwapIntervalEXT");
|
||||
if (qwglSwapIntervalEXT && _vid_wait_override.value>=0)
|
||||
if (qwglSwapIntervalEXT && *_vid_wait_override.string)
|
||||
{
|
||||
TRACE(("dbg: VID_AttachGL: qwglSwapIntervalEXT\n"));
|
||||
qwglSwapIntervalEXT(_vid_wait_override.value);
|
||||
|
@ -841,7 +841,7 @@ void GL_DoSwap (void)
|
|||
if (!scr_skipupdate || block_drawing)
|
||||
qSwapBuffers(maindc);
|
||||
|
||||
if (_vid_wait_override.modified && qwglSwapIntervalEXT && _vid_wait_override.value>=0)
|
||||
if (_vid_wait_override.modified && qwglSwapIntervalEXT && *_vid_wait_override.string)
|
||||
{
|
||||
qwglSwapIntervalEXT(_vid_wait_override.value);
|
||||
_vid_wait_override.modified = false;
|
||||
|
|
Loading…
Reference in a new issue