src/video/x11/SDL_x11video.c
changeset 6569 1f4e69a8e5e6
parent 6498 93d9b2a2eb0e
child 6637 31e3f5b04120
equal deleted inserted replaced
6568:1a6b0ae81937 6569:1f4e69a8e5e6
   153     const char *display = NULL; /* Use the DISPLAY environment variable */
   153     const char *display = NULL; /* Use the DISPLAY environment variable */
   154 
   154 
   155     if (!SDL_X11_LoadSymbols()) {
   155     if (!SDL_X11_LoadSymbols()) {
   156         return NULL;
   156         return NULL;
   157     }
   157     }
       
   158 
       
   159     // Need for threading gl calls. This is also required for the proprietary nVidia
       
   160 	//  driver to be threaded.
       
   161     XInitThreads();
   158 
   162 
   159     /* Initialize all variables that we clean on shutdown */
   163     /* Initialize all variables that we clean on shutdown */
   160     device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
   164     device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
   161     if (!device) {
   165     if (!device) {
   162         SDL_OutOfMemory();
   166         SDL_OutOfMemory();