From 46df9ea92a8dd8e063a47130b9eec0682ba600b4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 17 Dec 2025 17:16:39 -0500 Subject: [PATCH] egl: Call SDL_EGL_SetSwapInterval during context creation, not the GL version. The `GL` version returns early because the context isn't set yet, whereas the `EGL` version works out here. Fixes #14642. --- src/video/SDL_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 66d3d4308d..c4ecb0c3e9 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -1144,7 +1144,7 @@ SDL_GLContext SDL_EGL_CreateContext(SDL_VideoDevice *_this, EGLSurface egl_surfa } } - SDL_GL_SetSwapInterval(0); // EGL tends to default to vsync=1. To make this consistent with the rest of SDL, we force it off at startup. Apps can explicitly enable it afterwards. + SDL_EGL_SetSwapInterval(0); // EGL tends to default to vsync=1. To make this consistent with the rest of SDL, we force it off at startup. Apps can explicitly enable it afterwards. return (SDL_GLContext)egl_context; }