Skip to content

Commit

Permalink
Before drawing, MakeCurrent (#1141)
Browse files Browse the repository at this point in the history
Fixes #920
  • Loading branch information
mattleibow authored Feb 11, 2020
1 parent b79a595 commit 089c263
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 089c263

Please sign in to comment.