mirror of https://github.com/encounter/SDL.git
Merge commit '9161f95166f3d8e42248c1156e35255d4ebdc6a0' into main
This commit is contained in:
commit
12b7b82169
|
@ -1088,6 +1088,13 @@ SDL_EGL_SetSwapInterval(_THIS, int interval)
|
|||
return SDL_SetError("EGL not initialized");
|
||||
}
|
||||
|
||||
/* FIXME: Revisit this check when EGL_EXT_swap_control_tear is published:
|
||||
* https://github.com/KhronosGroup/EGL-Registry/pull/113
|
||||
*/
|
||||
if (interval < 0) {
|
||||
return SDL_SetError("Late swap tearing currently unsupported");
|
||||
}
|
||||
|
||||
status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval);
|
||||
if (status == EGL_TRUE) {
|
||||
_this->egl_data->egl_swapinterval = interval;
|
||||
|
|
Loading…
Reference in New Issue