소스 검색

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.
Philipp Wiesemann 9 년 전
부모
커밋
e964d00f64
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/x11/SDL_x11opengl.c

+ 1 - 1
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)
 {