From e964d00f645e8bca9b6fd25219414fd6deb81701 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 11 May 2016 21:11:12 +0200 Subject: [PATCH] X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown. It should return 0 as a safe default if the interval can not be determined. --- src/video/x11/SDL_x11opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 8b634be3d..c5e88ff6d 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -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) {