equal
deleted
inserted
replaced
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(); |