mirror of https://github.com/snes9xgit/snes9x.git
Prioritize GLX_EXT_swap_control over GLX_SGI_swap_control.
This commit is contained in:
parent
13c55b9260
commit
1678b71d1e
|
@ -905,16 +905,19 @@ S9xOpenGLDisplayDriver::swap_control (int enable)
|
|||
queried = TRUE;
|
||||
}
|
||||
|
||||
if (glSwapInterval)
|
||||
{
|
||||
glSwapInterval (enable);
|
||||
}
|
||||
|
||||
if (glXSwapIntervalEXT)
|
||||
{
|
||||
if (glSwapInterval)
|
||||
glSwapInterval (0);
|
||||
|
||||
glXSwapIntervalEXT (display, xwindow, enable);
|
||||
}
|
||||
|
||||
else if (glSwapInterval)
|
||||
{
|
||||
glSwapInterval (enable);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue