Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11opengl.c Thu Feb 10 11:39:08 2011 -0800 +++ b/src/video/x11/SDL_x11opengl.c Thu Feb 10 12:14:37 2011 -0800 @@ -220,7 +220,7 @@ X11_GL_InitExtensions(_THIS) { Display *display = ((SDL_VideoData *) _this->driverdata)->display; - int screen = ((SDL_DisplayData *) SDL_CurrentDisplay->driverdata)->screen; + int screen = DefaultScreen(display); XVisualInfo *vinfo; XSetWindowAttributes xattr; Window w;