Be explicit about what display you're querying. The default display is 0.
This commit is contained in:
parent
e0f869b698
commit
e9689c29d5
9 changed files with 90 additions and 166 deletions
|
@ -220,7 +220,7 @@ static void
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue