src/video/SDL_video.c
changeset 10700 00fe449fbefe
parent 10699 5b918dee0872
child 10732 617f3de85b0a
     1.1 --- a/src/video/SDL_video.c	Sun Dec 11 12:01:01 2016 -0800
     1.2 +++ b/src/video/SDL_video.c	Sun Dec 11 12:01:44 2016 -0800
     1.3 @@ -3390,20 +3390,22 @@
     1.4      }
     1.5  }
     1.6  
     1.7 -int
     1.8 +void
     1.9  SDL_GL_SwapWindow(SDL_Window * window)
    1.10  {
    1.11 -    CHECK_WINDOW_MAGIC(window,-1);
    1.12 +    CHECK_WINDOW_MAGIC(window,);
    1.13  
    1.14      if (!(window->flags & SDL_WINDOW_OPENGL)) {
    1.15 -        return SDL_SetError("The specified window isn't an OpenGL window");
    1.16 +        SDL_SetError("The specified window isn't an OpenGL window");
    1.17 +        return;
    1.18      }
    1.19  
    1.20      if (SDL_GL_GetCurrentWindow() != window) {
    1.21 -        return SDL_SetError("The specified window has not been made current");
    1.22 -    }
    1.23 -
    1.24 -    return _this->GL_SwapWindow(_this, window);
    1.25 +        SDL_SetError("The specified window has not been made current");
    1.26 +        return;
    1.27 +    }
    1.28 +
    1.29 +    _this->GL_SwapWindow(_this, window);
    1.30  }
    1.31  
    1.32  void