From 137b0b2bee2bb9dd76e2c260970ccf7ff0621692 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 22 Sep 2025 10:22:41 -0700 Subject: [PATCH] The default swap interval on EGL is 1, according to the spec Fixes https://github.com/libsdl-org/SDL/issues/14014 --- src/video/SDL_egl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 4cf7712e31..a331dbe7f2 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -1107,7 +1107,8 @@ SDL_GLContext SDL_EGL_CreateContext(SDL_VideoDevice *_this, EGLSurface egl_surfa return NULL; } - _this->egl_data->egl_swapinterval = 0; + // The default swap interval is 1, according to the spec + _this->egl_data->egl_swapinterval = 1; if (!SDL_EGL_MakeCurrent(_this, egl_surface, (SDL_GLContext)egl_context)) { // Delete the context