mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 09:55:42 +00:00
The default swap interval on EGL is 1, according to the spec
Fixes https://github.com/libsdl-org/SDL/issues/14014
This commit is contained in:
parent
8a67a8a319
commit
137b0b2bee
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue