Browse Source

GLX: Fixed vsync.

bkaradzic 12 years ago
parent
commit
a33175cf6a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/glcontext_glx.cpp

+ 2 - 2
src/glcontext_glx.cpp

@@ -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)
 		{