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

index be9772fee97c90d1a69e274b343b886510efa4a0..c89f9e2fc31ca8b50fc99f444badbf52b31994f3 100644 (file)
@@ -131,7 +131,7 @@ namespace OpenTK
 #endif
             if (disposing)
             {
-                _GraphicsContext.MakeCurrent(_WindowInfo);
+                MakeCurrent();
                 OnShuttingDown();
                 if (GraphicsContext.ShareContexts && (Interlocked.Decrement(ref _GraphicsContextCount) == 0))
                 {