Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11opengl.c @ 2324:3202e4826c57
more valgrind errors fixed. Plus I ran make indent which changed a few files.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Fri, 07 Mar 2008 17:20:37 +0000 |
parents | 4ac07ae446d3 |
children | 7b53a8401195 |
comparison
equal
deleted
inserted
replaced
2323:4ac07ae446d3 | 2324:3202e4826c57 |
---|---|
279 | 279 |
280 int | 280 int |
281 X11_GL_Initialize(_THIS) | 281 X11_GL_Initialize(_THIS) |
282 { | 282 { |
283 | 283 |
284 if (X11_GL_InitializeMemory(_this) < 0) { | 284 if (X11_GL_InitializeMemory(_this) < 0) { |
285 return -1; | 285 return -1; |
286 } | 286 } |
287 ++_this->gl_data->initialized; | 287 ++_this->gl_data->initialized; |
288 | 288 |
289 if (X11_GL_LoadLibrary(_this, NULL) < 0) { | 289 if (X11_GL_LoadLibrary(_this, NULL) < 0) { |
290 return -1; | 290 return -1; |
291 } | 291 } |
292 | 292 |
293 /* Initialize extensions */ | 293 /* Initialize extensions */ |
294 X11_GL_InitExtensions(_this); | 294 X11_GL_InitExtensions(_this); |
295 | 295 |
296 return 0; | 296 return 0; |
297 } | 297 } |
298 | 298 |
299 void | 299 void |
300 X11_GL_Shutdown(_THIS) | 300 X11_GL_Shutdown(_THIS) |
301 { | 301 { |
521 { | 521 { |
522 Display *display = ((SDL_VideoData *) _this->driverdata)->display; | 522 Display *display = ((SDL_VideoData *) _this->driverdata)->display; |
523 GLXContext glx_context = (GLXContext) context; | 523 GLXContext glx_context = (GLXContext) context; |
524 | 524 |
525 _this->gl_data->glXDestroyContext(display, glx_context); | 525 _this->gl_data->glXDestroyContext(display, glx_context); |
526 XSync(display, False); | |
526 } | 527 } |
527 | 528 |
528 #endif /* SDL_VIDEO_OPENGL_GLX */ | 529 #endif /* SDL_VIDEO_OPENGL_GLX */ |
529 | 530 |
530 /* vi: set ts=4 sw=4 expandtab: */ | 531 /* vi: set ts=4 sw=4 expandtab: */ |