Skip to content

Commit 32d6670

Browse files
committed
fix SW renderer frozen after coming back from Alt/Tab (fullscreen mode).
close #1053
1 parent 9c5ba84 commit 32d6670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Gui/SDLRunner.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ namespace spades {
522522
if (vsync != 0 && SDL_GL_SetSwapInterval(vsync) != 0) {
523523
SPRaise("SDL_GL_SetSwapInterval failed: %s", SDL_GetError());
524524
}
525+
} else {
526+
SDL_SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "0");
525527
}
526528
#endif
527529

0 commit comments

Comments
 (0)