src/video/x11/SDL_x11opengl.c
changeset 3011 8f4ed5ec2b06
parent 2963 ee331407574f
child 3013 8cc00819c8d6
equal deleted inserted replaced
3010:a6694a812119 3011:8f4ed5ec2b06
   415 X11_GL_CreateContext(_THIS, SDL_Window * window)
   415 X11_GL_CreateContext(_THIS, SDL_Window * window)
   416 {
   416 {
   417     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   417     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   418     Display *display = data->videodata->display;
   418     Display *display = data->videodata->display;
   419     int screen =
   419     int screen =
   420         ((SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->
   420         ((SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata)->
   421          driverdata)->screen;
   421         screen;
   422     XWindowAttributes xattr;
   422     XWindowAttributes xattr;
   423     XVisualInfo v, *vinfo;
   423     XVisualInfo v, *vinfo;
   424     int n;
   424     int n;
   425     GLXContext context = NULL;
   425     GLXContext context = NULL;
   426 
   426