Skip to content

Commit 3fee36b

Browse files
ACrazyTownMAJigsaw77
authored andcommitted
SDLWindow: fix SetVSyncMode return
1 parent 9ab1996 commit 3fee36b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

project/src/backend/sdl/SDLWindow.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ namespace lime {
355355

356356

357357
bool SDLWindow::SetVSyncMode (int mode) {
358-
int res = SDL_GL_SetSwapInterval (mode);
359-
return res == mode || res == 0; // 0 sometimes means a success on some contexts?
358+
return SDL_GL_SetSwapInterval (mode) == 0;
360359
}
361360

362361

0 commit comments

Comments
 (0)