fixed vsync handling in COpenGL.cs

This commit is contained in:
Alexander Eckart committed 2012-03-18 20:12:18 +01:00
1 parent 807d9f0e8b
commit 3cc02a189a
1 file changed
+1 -1
+1 -1
View File
@@ -469,7 +469,7 @@ namespace Vocaluxe.Lib.Draw
if (CTime.IsRunning())
delay = (int)Math.Floor(CConfig.CalcCycleTime() - CTime.GetMilliseconds());
if (delay >= 1)
if (delay >= 1 && CConfig.VSync == EOffOn.TR_CONFIG_OFF)
System.Threading.Thread.Sleep(delay);
CTime.CalculateFPS();