src/video/SDL_egl.c
changeset 10693 8ba9886003b1
parent 10461 520440de7a17
child 10737 3406a0f8b041
     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