src/video/windows/SDL_windowsopengl.c
changeset 10690 23a825f341e6
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
     1.1 --- a/src/video/windows/SDL_windowsopengl.c	Fri Dec 09 01:29:52 2016 -0800
     1.2 +++ b/src/video/windows/SDL_windowsopengl.c	Fri Dec 09 01:47:43 2016 -0800
     1.3 @@ -766,12 +766,15 @@
     1.4      return retval;
     1.5  }
     1.6  
     1.7 -void
     1.8 +int
     1.9  WIN_GL_SwapWindow(_THIS, SDL_Window * window)
    1.10  {
    1.11      HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
    1.12  
    1.13 -    SwapBuffers(hdc);
    1.14 +    if (!SwapBuffers(hdc)) {
    1.15 +        return WIN_SetError("SwapBuffers()");
    1.16 +    }
    1.17 +    return 0;
    1.18  }
    1.19  
    1.20  void