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.
--- a/src/video/x11/SDL_x11opengl.c Wed May 11 21:10:41 2016 +0200
+++ b/src/video/x11/SDL_x11opengl.c Wed May 11 21:11:12 2016 +0200
@@ -710,7 +710,7 @@
with 0 as an argument.
*/
-static int swapinterval = -1;
+static int swapinterval = 0;
int
X11_GL_SetSwapInterval(_THIS, int interval)
{