From fed8cbcdb69d620aad7271e25859dc192398e37e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 9 Dec 2016 05:00:35 -0800 Subject: [PATCH] Fixed build for EGL platforms --- src/video/SDL_egl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index c903805663911..5cf9e9ac7312e 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -565,10 +565,13 @@ SDL_EGL_GetSwapInterval(_THIS) return _this->egl_data->egl_swapinterval; } -void +int SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface) { - _this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface); + if (!_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface)) { + return SDL_SetError("eglSwapBuffers() failed"); + } + return 0; } void