mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
EGL: Fixed SDL_GL_GetSwapInterval() returning -1 on error.
It should return 0 as a safe default on errors. -1 is returned for late swaps.
This commit is contained in:
parent
cfe3f26115
commit
748b05289c
1 changed files with 2 additions and 1 deletions
|
|
@ -558,7 +558,8 @@ int
|
|||
SDL_EGL_GetSwapInterval(_THIS)
|
||||
{
|
||||
if (!_this->egl_data) {
|
||||
return SDL_SetError("EGL not initialized");
|
||||
SDL_SetError("EGL not initialized");
|
||||
return 0;
|
||||
}
|
||||
|
||||
return _this->egl_data->egl_swapinterval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue