comparison src/video/SDL_video.c @ 2540:56cf872c723a gsoc2008_force_feedback

Synced with trunk.
author Edgar Simo <bobbens@gmail.com>
date Sun, 20 Jul 2008 21:34:04 +0000
parents 91e601d9df8b
children 204be4fc2726
comparison
equal deleted inserted replaced
2539:b4c41a7eea04 2540:56cf872c723a
2523 return -1; 2523 return -1;
2524 } 2524 }
2525 if (!context) { 2525 if (!context) {
2526 window = NULL; 2526 window = NULL;
2527 } 2527 }
2528 if (window) {
2529 if (window->context == context) {
2530 return 0;
2531 }
2532 window->context = context;
2533 }
2534 return _this->GL_MakeCurrent(_this, window, context); 2528 return _this->GL_MakeCurrent(_this, window, context);
2535 } 2529 }
2536 2530
2537 int 2531 int
2538 SDL_GL_SetSwapInterval(int interval) 2532 SDL_GL_SetSwapInterval(int interval)