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:
Sam Lantinga
2016-12-09 01:47:43 -08:00
parent 3b18c796ed
commit 524bf3c282
38 changed files with 125 additions and 86 deletions

View File

@@ -31,12 +31,12 @@
#include "SDL_mirdyn.h"
void
int
MIR_GL_SwapWindow(_THIS, SDL_Window* window)
{
MIR_Window* mir_wind = window->driverdata;
SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
return SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
}
int

View File

@@ -34,7 +34,7 @@
#define MIR_GL_GetSwapInterval SDL_EGL_GetSwapInterval
#define MIR_GL_SetSwapInterval SDL_EGL_SetSwapInterval
extern void
extern int
MIR_GL_SwapWindow(_THIS, SDL_Window* window);
extern int