Skip to content
Permalink
Browse files

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.
  • Loading branch information
philippwiesemann committed May 11, 2016
1 parent cfe3f26 commit 748b05289ccaa9bfbadbb024c16cd69ed014817d

File 1 of 1 in 748b052

@@ -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;

0 comments on commit 748b052

Please sign in to comment.