Skip to content

Commit

Permalink
Don't force vsync for Mac OSX
Browse files Browse the repository at this point in the history
Vsync is now the default, so the default case works while allowing users
to turn it off if they want.
  • Loading branch information
mateofio authored and carstene1ns committed May 22, 2020
1 parent e261384 commit 14dd095
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/sdl2_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,7 @@ bool Sdl2Ui::RefreshDisplayMode() {

SetAppIcon();

// OS X needs the rendered to be vsync
#if defined(__APPLE__) && defined(__MACH__)
uint32_t rendered_flag = SDL_RENDERER_PRESENTVSYNC;
#else
uint32_t rendered_flag = 0;
#endif

#ifndef __MORPHOS__
if (Player::vsync) {
rendered_flag |= SDL_RENDERER_PRESENTVSYNC;
Expand Down

0 comments on commit 14dd095

Please sign in to comment.