Prioritize GLX_EXT_swap_control over GLX_SGI_swap_control.

This commit is contained in:
Brandon Wright 2011-12-14 02:46:12 -06:00
parent 13c55b9260
commit 1678b71d1e
1 changed files with 8 additions and 5 deletions

View File

@ -905,16 +905,19 @@ S9xOpenGLDisplayDriver::swap_control (int enable)
queried = TRUE; queried = TRUE;
} }
if (glSwapInterval)
{
glSwapInterval (enable);
}
if (glXSwapIntervalEXT) if (glXSwapIntervalEXT)
{ {
if (glSwapInterval)
glSwapInterval (0);
glXSwapIntervalEXT (display, xwindow, enable); glXSwapIntervalEXT (display, xwindow, enable);
} }
else if (glSwapInterval)
{
glSwapInterval (enable);
}
return; return;
} }