src/video/directfb/SDL_DirectFB_opengl.c
changeset 10690 23a825f341e6
parent 9998 f67cf37e9cd4
child 10737 3406a0f8b041
equal deleted inserted replaced
10689:69d6c1c7a2bf 10690:23a825f341e6
   244 DirectFB_GL_GetSwapInterval(_THIS)
   244 DirectFB_GL_GetSwapInterval(_THIS)
   245 {
   245 {
   246     return 0;
   246     return 0;
   247 }
   247 }
   248 
   248 
   249 void
   249 int
   250 DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
   250 DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
   251 {
   251 {
   252     SDL_DFB_WINDOWDATA(window);
   252     SDL_DFB_WINDOWDATA(window);
   253     DFBRegion region;
   253     DFBRegion region;
   254     DirectFB_GLContext *p;
   254     DirectFB_GLContext *p;
   271             SDL_DFB_CHECKERR(p->context->Unlock(p->context));
   271             SDL_DFB_CHECKERR(p->context->Unlock(p->context));
   272             p->is_locked = 0;
   272             p->is_locked = 0;
   273         }
   273         }
   274 
   274 
   275     SDL_DFB_CHECKERR(windata->window_surface->Flip(windata->window_surface,NULL,  DSFLIP_PIPELINE |DSFLIP_BLIT | DSFLIP_ONSYNC ));
   275     SDL_DFB_CHECKERR(windata->window_surface->Flip(windata->window_surface,NULL,  DSFLIP_PIPELINE |DSFLIP_BLIT | DSFLIP_ONSYNC ));
   276     return;
   276     return 0;
   277   error:
   277   error:
   278     return;
   278     return -1;
   279 }
   279 }
   280 
   280 
   281 void
   281 void
   282 DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context)
   282 DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context)
   283 {
   283 {