Skip to content

Commit

Permalink
Enable VSync for OpenTK
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresTraks committed Oct 21, 2017
1 parent 9547192 commit 272da5e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions demos/Generic/DemoFramework/Graphics/OpenTK/GLForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 272da5e

Please # to comment.