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:
Spoike 2006-02-01 22:32:30 +00:00
parent d09c73dfeb
commit 48d07feec4

View file

@ -798,7 +798,7 @@ qboolean VID_AttachGL (rendererstate_t *info)
TRACE(("dbg: VID_AttachGL: GL_Init\n")); TRACE(("dbg: VID_AttachGL: GL_Init\n"));
GL_Init(getglfunc); GL_Init(getglfunc);
qwglSwapIntervalEXT = getglfunc("wglSwapIntervalEXT"); qwglSwapIntervalEXT = getglfunc("wglSwapIntervalEXT");
if (qwglSwapIntervalEXT && _vid_wait_override.value>=0) if (qwglSwapIntervalEXT && *_vid_wait_override.string)
{ {
TRACE(("dbg: VID_AttachGL: qwglSwapIntervalEXT\n")); TRACE(("dbg: VID_AttachGL: qwglSwapIntervalEXT\n"));
qwglSwapIntervalEXT(_vid_wait_override.value); qwglSwapIntervalEXT(_vid_wait_override.value);
@ -841,7 +841,7 @@ void GL_DoSwap (void)
if (!scr_skipupdate || block_drawing) if (!scr_skipupdate || block_drawing)
qSwapBuffers(maindc); 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); qwglSwapIntervalEXT(_vid_wait_override.value);
_vid_wait_override.modified = false; _vid_wait_override.modified = false;