Skip to content

Commit

Permalink
Before drawing, MakeCurrent
Browse files Browse the repository at this point in the history
Fixes #920
  • Loading branch information
mattleibow committed Feb 11, 2020
1 parent e6f9334 commit 5c40633
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ protected override void OnPaint(PaintEventArgs e)

base.OnPaint(e);

MakeCurrent();

// create the contexts if not done already
if (grContext == null)
{
Expand Down

0 comments on commit 5c40633

Please sign in to comment.