From 272da5eb76ea928a9cb65cf10db452664fdc5876 Mon Sep 17 00:00:00 2001 From: AndresTraks Date: Sat, 21 Oct 2017 17:20:52 +0300 Subject: [PATCH] Enable VSync for OpenTK --- .../Generic/DemoFramework/Graphics/OpenTK/GLForm.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/demos/Generic/DemoFramework/Graphics/OpenTK/GLForm.cs b/demos/Generic/DemoFramework/Graphics/OpenTK/GLForm.cs index a96dbda..b49d336 100644 --- a/demos/Generic/DemoFramework/Graphics/OpenTK/GLForm.cs +++ b/demos/Generic/DemoFramework/Graphics/OpenTK/GLForm.cs @@ -21,11 +21,13 @@ public GLForm(OpenTKGraphics graphics) InitializeComponent(); - glControl = new GLControl(new GraphicsMode(new ColorFormat(24), 24, 0, 4)); - glControl.BackColor = System.Drawing.Color.Black; - glControl.Dock = DockStyle.Fill; - glControl.TabIndex = 0; - glControl.VSync = false; + GLControl = new GLControl + { + BackColor = System.Drawing.Color.Black, + Dock = DockStyle.Fill, + TabIndex = 0, + VSync = true + }; Controls.Add(glControl);