Use GLArea MakeCurrent method.
authorJarl Gullberg <jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 10:42:28 +0000 (12:42 +0200)
committerJarl Gullberg <jarl.gullberg@gmail.com>
Fri, 15 Sep 2017 10:42:28 +0000 (12:42 +0200)
src/OpenTK.GLWidget/GLWidget.cs

index 41c6b44ce83684ec392e520855bbeedbd035e733..be9772fee97c90d1a69e274b343b886510efa4a0 100644 (file)
@@ -298,7 +298,7 @@ namespace OpenTK
             }
 
             // Make the GDK GL context current
-            Context.MakeCurrent();
+            MakeCurrent();
 
             // Create an OpenTK graphics context using the GdkGLContext as a foreign context
             // Since the GDK context is already created and has been made current, we can retrieve its handle.
@@ -306,7 +306,8 @@ namespace OpenTK
 
             GetRequiredVersion(out int glVersionMajor, out int glVersionMinor);
             _GraphicsContext = new GraphicsContext(gdkContextHandle, _WindowInfo, null, glVersionMajor, glVersionMinor, GraphicsContextFlags);
-            _GraphicsContext.MakeCurrent(_WindowInfo);
+
+            MakeCurrent();
 
             if (GraphicsContext.ShareContexts)
             {