mirror of
https://github.com/encounter/SDL.git
synced 2025-12-19 09:55:29 +00:00
Fixed bug 3513 - SDL_GL_SwapWindow does not return error status
Return an error code from SDL_GL_SwapWindow(), like the other SDL APIs.
This commit is contained in:
@@ -246,7 +246,7 @@ DirectFB_GL_GetSwapInterval(_THIS)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
|
||||
{
|
||||
SDL_DFB_WINDOWDATA(window);
|
||||
@@ -273,9 +273,9 @@ DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
|
||||
}
|
||||
|
||||
SDL_DFB_CHECKERR(windata->window_surface->Flip(windata->window_surface,NULL, DSFLIP_PIPELINE |DSFLIP_BLIT | DSFLIP_ONSYNC ));
|
||||
return;
|
||||
return 0;
|
||||
error:
|
||||
return;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -50,7 +50,7 @@ extern int DirectFB_GL_MakeCurrent(_THIS, SDL_Window * window,
|
||||
SDL_GLContext context);
|
||||
extern int DirectFB_GL_SetSwapInterval(_THIS, int interval);
|
||||
extern int DirectFB_GL_GetSwapInterval(_THIS);
|
||||
extern void DirectFB_GL_SwapWindow(_THIS, SDL_Window * window);
|
||||
extern int DirectFB_GL_SwapWindow(_THIS, SDL_Window * window);
|
||||
extern void DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context);
|
||||
|
||||
extern void DirectFB_GL_FreeWindowContexts(_THIS, SDL_Window * window);
|
||||
|
||||
Reference in New Issue
Block a user