Skip to content

Commit

Permalink
X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
Browse files Browse the repository at this point in the history
It should return 0 as a safe default if the interval can not be determined.
  • Loading branch information
philippwiesemann committed May 11, 2016
1 parent 748b052 commit e964d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -710,7 +710,7 @@ X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
with 0 as an argument.
*/

static int swapinterval = -1;
static int swapinterval = 0;
int
X11_GL_SetSwapInterval(_THIS, int interval)
{
Expand Down

0 comments on commit e964d00

Please sign in to comment.