src/video/SDL_egl_c.h
changeset 10690 23a825f341e6
parent 10638 d11daa346140
child 10737 3406a0f8b041
     1.1 --- a/src/video/SDL_egl_c.h	Fri Dec 09 01:29:52 2016 -0800
     1.2 +++ b/src/video/SDL_egl_c.h	Fri Dec 09 01:47:43 2016 -0800
     1.3 @@ -96,14 +96,14 @@
     1.4  /* These need to be wrapped to get the surface for the window by the platform GLES implementation */
     1.5  extern SDL_GLContext SDL_EGL_CreateContext(_THIS, EGLSurface egl_surface);
     1.6  extern int SDL_EGL_MakeCurrent(_THIS, EGLSurface egl_surface, SDL_GLContext context);
     1.7 -extern void SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface);
     1.8 +extern int SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface);
     1.9  
    1.10  /* A few of useful macros */
    1.11  
    1.12 -#define SDL_EGL_SwapWindow_impl(BACKEND) void \
    1.13 +#define SDL_EGL_SwapWindow_impl(BACKEND) int \
    1.14  BACKEND ## _GLES_SwapWindow(_THIS, SDL_Window * window) \
    1.15  {\
    1.16 -    SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);\
    1.17 +    return SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);\
    1.18  }
    1.19  
    1.20  #define SDL_EGL_MakeCurrent_impl(BACKEND) int \