Skip to content

Commit 137b0b2

Browse files
committed
The default swap interval on EGL is 1, according to the spec
Fixes #14014
1 parent 8a67a8a commit 137b0b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/video/SDL_egl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,8 @@ SDL_GLContext SDL_EGL_CreateContext(SDL_VideoDevice *_this, EGLSurface egl_surfa
11071107
return NULL;
11081108
}
11091109

1110-
_this->egl_data->egl_swapinterval = 0;
1110+
// The default swap interval is 1, according to the spec
1111+
_this->egl_data->egl_swapinterval = 1;
11111112

11121113
if (!SDL_EGL_MakeCurrent(_this, egl_surface, (SDL_GLContext)egl_context)) {
11131114
// Delete the context

0 commit comments

Comments
 (0)