src/video/x11/SDL_x11opengl.c
changeset 1955 8c6106e45fc1
parent 1954 c20e158a9299
child 1956 ba0d62354872
equal deleted inserted replaced
1954:c20e158a9299 1955:8c6106e45fc1
   410     XWindowAttributes xattr;
   410     XWindowAttributes xattr;
   411     XVisualInfo v, *vinfo;
   411     XVisualInfo v, *vinfo;
   412     int n;
   412     int n;
   413     GLXContext context = NULL;
   413     GLXContext context = NULL;
   414 
   414 
   415     /* We do _this to create a clean separation between X and GLX errors. */
   415     /* We do this to create a clean separation between X and GLX errors. */
   416     XSync(display, False);
   416     XSync(display, False);
   417     XGetWindowAttributes(display, data->window, &xattr);
   417     XGetWindowAttributes(display, data->window, &xattr);
   418     v.screen = screen;
   418     v.screen = screen;
   419     v.visualid = XVisualIDFromVisual(xattr.visual);
   419     v.visualid = XVisualIDFromVisual(xattr.visual);
   420     vinfo = XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &v, &n);
   420     vinfo = XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &v, &n);