diff --git a/Source/OpenTK/Graphics/GraphicsContext.cs b/Source/OpenTK/Graphics/GraphicsContext.cs index 9069ebd6..72d88923 100644 --- a/Source/OpenTK/Graphics/GraphicsContext.cs +++ b/Source/OpenTK/Graphics/GraphicsContext.cs @@ -188,6 +188,10 @@ namespace OpenTK.Graphics if (getAddress == null || getCurrent == null) throw new ArgumentNullException(); + // Make sure OpenTK has been initialized. + // Fixes https://github.com/opentk/opentk/issues/52 + Toolkit.Init(); + lock (SyncRoot) { // Replace a zero-handle by the current context, if any