File freeglut-sig11-bug466806.diff of Package freeglut

Index: src/freeglut_window.c
===================================================================
--- src/freeglut_window.c	(revision 761)
+++ src/freeglut_window.c	(working copy)
@@ -458,10 +458,9 @@ void fgSetWindow ( SFG_Window *window )
 {
 #if TARGET_HOST_POSIX_X11
     if ( window )
-        glXMakeContextCurrent(
+        glXMakeCurrent(
             fgDisplay.Display,
             window->Window.Handle,
-            window->Window.Handle,
             window->Window.Context
         );
 #elif TARGET_HOST_MS_WINDOWS
@@ -755,10 +754,9 @@ void fgOpenWindow( SFG_Window* window, const char*
     XSetWMProtocols( fgDisplay.Display, window->Window.Handle,
                      &fgDisplay.DeleteWindow, 1 );
 
-    glXMakeContextCurrent(
+    glXMakeCurrent(
         fgDisplay.Display,
         window->Window.Handle,
-        window->Window.Handle,
         window->Window.Context
     );