comparison src/video/x11/SDL_x11opengl.c @ 5249:762e40fb8e28

Be explicit about what display you're querying. The default display is 0.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 10 Feb 2011 12:14:37 -0800
parents 3a8a452b49f0
children 58265e606e4e
comparison
equal deleted inserted replaced
5248:3a8a452b49f0 5249:762e40fb8e28
218 218
219 static void 219 static void
220 X11_GL_InitExtensions(_THIS) 220 X11_GL_InitExtensions(_THIS)
221 { 221 {
222 Display *display = ((SDL_VideoData *) _this->driverdata)->display; 222 Display *display = ((SDL_VideoData *) _this->driverdata)->display;
223 int screen = ((SDL_DisplayData *) SDL_CurrentDisplay->driverdata)->screen; 223 int screen = DefaultScreen(display);
224 XVisualInfo *vinfo; 224 XVisualInfo *vinfo;
225 XSetWindowAttributes xattr; 225 XSetWindowAttributes xattr;
226 Window w; 226 Window w;
227 GLXContext context; 227 GLXContext context;
228 const char *(*glXQueryExtensionsStringFunc) (Display *, int); 228 const char *(*glXQueryExtensionsStringFunc) (Display *, int);