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.
This commit is contained in:
Philipp Wiesemann 2016-05-11 21:11:12 +02:00
parent 748b05289c
commit e964d00f64
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
with 0 as an argument. with 0 as an argument.
*/ */
static int swapinterval = -1; static int swapinterval = 0;
int int
X11_GL_SetSwapInterval(_THIS, int interval) X11_GL_SetSwapInterval(_THIS, int interval)
{ {