Fixed build for EGL platforms
This commit is contained in:
parent
a4c48157ef
commit
cb997e1997
1 changed files with 5 additions and 2 deletions
|
@ -565,10 +565,13 @@ SDL_EGL_GetSwapInterval(_THIS)
|
||||||
return _this->egl_data->egl_swapinterval;
|
return _this->egl_data->egl_swapinterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
int
|
||||||
SDL_EGL_SwapBuffers(_THIS, EGLSurface egl_surface)
|
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
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue