src/video/SDL_video.c
changeset 2245 989fb86ad1ec
parent 2222 926294b2bb4e
child 2257 340942cfda48
     1.1 --- a/src/video/SDL_video.c	Wed Aug 15 03:50:49 2007 +0000
     1.2 +++ b/src/video/SDL_video.c	Wed Aug 15 03:52:31 2007 +0000
     1.3 @@ -2566,6 +2566,12 @@
     1.4      if (!context) {
     1.5          window = NULL;
     1.6      }
     1.7 +    if (window) {
     1.8 +        if (window->context == context) {
     1.9 +            return 0;
    1.10 +        }
    1.11 +        window->context = context;
    1.12 +    }
    1.13      return _this->GL_MakeCurrent(_this, window, context);
    1.14  }
    1.15