src/video/x11/SDL_x11video.c
changeset 6569 1f4e69a8e5e6
parent 6498 93d9b2a2eb0e
child 6637 31e3f5b04120
--- a/src/video/x11/SDL_x11video.c	Thu Oct 11 09:34:13 2012 -0700
+++ b/src/video/x11/SDL_x11video.c	Thu Oct 11 09:37:38 2012 -0700
@@ -156,6 +156,10 @@
         return NULL;
     }
 
+    // Need for threading gl calls. This is also required for the proprietary nVidia
+	//  driver to be threaded.
+    XInitThreads();
+
     /* Initialize all variables that we clean on shutdown */
     device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
     if (!device) {