From 6db29562ccb82f7e0cd34b4f1fb9bf17b61e7f11 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Wed, 23 Jul 2014 23:23:14 +0200 Subject: [PATCH] [Mac] Release input driver before other resources The input driver relies on the existence of a CFRunLoop. Releasing it first ensures that a CFRunLoop is available for its complete life cycle. --- Source/OpenTK/Platform/MacOS/MacOSFactory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/MacOSFactory.cs b/Source/OpenTK/Platform/MacOS/MacOSFactory.cs index 613d2d77..9a40ffa3 100644 --- a/Source/OpenTK/Platform/MacOS/MacOSFactory.cs +++ b/Source/OpenTK/Platform/MacOS/MacOSFactory.cs @@ -104,12 +104,12 @@ namespace OpenTK.Platform.MacOS { if (!IsDisposed) { - base.Dispose(manual); - if (manual) { InputDriver.Dispose(); } + + base.Dispose(manual); } }