M_Print(220, video_cursor_table[3], "Apply");
// Vertical Sync
- M_Print(16, video_cursor_table[4], " Vertical Sync");
+ M_ItemPrint (0, video_cursor_table[4], " Vertical Sync", gl_videosyncavailable);
M_DrawCheckbox(220, video_cursor_table[4], vid_vsync.integer);
// Cursor
gl_platform = "GLX";
gl_platformextensions = qglXQueryExtensionsString(vidx11_display, vidx11_screen);
+ gl_videosyncavailable = false;
+
GL_CheckExtension("GLX_ARB_get_proc_address", getprocaddressfuncs, "-nogetprocaddress", false);
gl_videosyncavailable = GL_CheckExtension("GLX_SGI_video_sync", videosyncfuncs, "-novideosync", false);
gl_textureunits = 1;
gl_combine_extension = false;
gl_supportslockarrays = false;
- gl_videosyncavailable = false;
gl_texture3d = false;
gl_texturecubemap = false;
gl_dot3arb = false;
{
old_vsync = bound(0, vid_vsync.integer, 1);
Cvar_SetValueQuick(&vid_vsync, old_vsync);
- qwglSwapIntervalEXT (old_vsync);
+ if (gl_videosyncavailable)
+ qwglSwapIntervalEXT (old_vsync);
}
if (r_render.integer && !scr_skipupdate)
gl_platform = "WGL";
gl_platformextensions = "";
+ gl_videosyncavailable = false;
+
if (qwglGetExtensionsStringARB)
gl_platformextensions = qwglGetExtensionsStringARB(hdc);