Skip to content

Commit

Permalink
Fix vsync on WindowsGL
Browse files Browse the repository at this point in the history
Affects issue #1184
  • Loading branch information
thefiddler committed Apr 15, 2014
1 parent 73fc295 commit 55b12e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MonoGame.Framework/GraphicsDeviceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -521,15 +521,15 @@ public bool SynchronizeWithVerticalRetrace
{
get
{
#if LINUX
#if LINUX || (WINDOWS && OPENGL)
return _game.Platform.VSyncEnabled;
#else
return _synchronizedWithVerticalRetrace;
#endif
}
set
{
#if LINUX
#if LINUX || (WINDOWS && OPENGL)
// TODO: I'm pretty sure this shouldn't occur until ApplyChanges().
_game.Platform.VSyncEnabled = value;
#else
Expand Down

0 comments on commit 55b12e4

Please sign in to comment.