src/video/windows/SDL_windowsopengl.c
changeset 10690 23a825f341e6
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
equal deleted inserted replaced
10689:69d6c1c7a2bf 10690:23a825f341e6
   764         retval = _this->gl_data->wglGetSwapIntervalEXT();
   764         retval = _this->gl_data->wglGetSwapIntervalEXT();
   765     }
   765     }
   766     return retval;
   766     return retval;
   767 }
   767 }
   768 
   768 
   769 void
   769 int
   770 WIN_GL_SwapWindow(_THIS, SDL_Window * window)
   770 WIN_GL_SwapWindow(_THIS, SDL_Window * window)
   771 {
   771 {
   772     HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
   772     HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
   773 
   773 
   774     SwapBuffers(hdc);
   774     if (!SwapBuffers(hdc)) {
       
   775         return WIN_SetError("SwapBuffers()");
       
   776     }
       
   777     return 0;
   775 }
   778 }
   776 
   779 
   777 void
   780 void
   778 WIN_GL_DeleteContext(_THIS, SDL_GLContext context)
   781 WIN_GL_DeleteContext(_THIS, SDL_GLContext context)
   779 {
   782 {