From 48d07feec47ab8cc78d05408026ad0ab63386de1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 1 Feb 2006 22:32:30 +0000 Subject: [PATCH] vid_wait_override stuff git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1921 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index 92378ab12..6509454eb 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -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;