Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11opengl.c @ 1955:8c6106e45fc1
(none)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Jul 2006 03:57:55 +0000 |
parents | c20e158a9299 |
children | ba0d62354872 |
comparison
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); |