mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
GLX: Fixed vsync.
This commit is contained in:
parent
2ef508139f
commit
a33175cf6a
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ namespace bgfx
|
|||
if (NULL != glXSwapIntervalEXT)
|
||||
{
|
||||
BX_TRACE("Using glXSwapIntervalEXT.");
|
||||
glXSwapIntervalEXT(s_display, 0, 0);
|
||||
glXSwapIntervalEXT(s_display, s_window, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -186,7 +186,7 @@ namespace bgfx
|
|||
|
||||
if (NULL != glXSwapIntervalEXT)
|
||||
{
|
||||
glXSwapIntervalEXT(s_display, 0, interval);
|
||||
glXSwapIntervalEXT(s_display, s_window, interval);
|
||||
}
|
||||
else if (NULL != glXSwapIntervalSGI)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue