Fixed build for EGL platforms
authorSam Lantinga <slouken@libsdl.org>
Fri, 09 Dec 2016 05:00:35 -0800
changeset 106938ba9886003b1
parent 10692 11a38cbeb30e
child 10694 9834cdff44f9
Fixed build for EGL platforms
src/video/SDL_egl.c
     1.1 --- a/src/video/SDL_egl.c	Fri Dec 09 04:57:54 2016 -0800
     1.2 +++ b/src/video/SDL_egl.c	Fri Dec 09 05:00:35 2016 -0800
     1.3 @@ -565,10 +565,13 @@
     1.4      return _this->egl_data->egl_swapinterval;
     1.5  }
     1.6  
     1.7 -void
     1.8 +int
     1.9  SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface)
    1.10  {
    1.11 -    _this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface);
    1.12 +    if (!_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface)) {
    1.13 +        return SDL_SetError("eglSwapBuffers() failed");
    1.14 +    }
    1.15 +    return 0;
    1.16  }
    1.17  
    1.18  void