src/video/SDL_video.c
branchgsoc2008_force_feedback
changeset 2540 56cf872c723a
parent 2328 91e601d9df8b
child 2735 204be4fc2726
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)