mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-07 18:39:37 +01:00
Fixed build for EGL platforms
This commit is contained in:
parent
b936a4c360
commit
fed8cbcdb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user