mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
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.
This commit is contained in:
parent
235f417616
commit
46df9ea92a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue