Skip to content

Commit

Permalink
fix SW renderer frozen after coming back from Alt/Tab (fullscreen mode).
Browse files Browse the repository at this point in the history
close #1053
  • Loading branch information
devnexen committed Jan 14, 2023
1 parent 9c5ba84 commit 32d6670
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Gui/SDLRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ namespace spades {
if (vsync != 0 && SDL_GL_SetSwapInterval(vsync) != 0) {
SPRaise("SDL_GL_SetSwapInterval failed: %s", SDL_GetError());
}
} else {
SDL_SetHint("SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS", "0");
}
#endif

Expand Down

0 comments on commit 32d6670

Please sign in to comment.