Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed build for EGL platforms
  • Loading branch information
slouken committed Dec 9, 2016
1 parent b936a4c commit fed8cbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/video/SDL_egl.c
Expand Up @@ -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
Expand Down

0 comments on commit fed8cbc

Please sign in to comment.