From 864cc84019d49b7b2037cc18205c99059960e204 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Wed, 23 Jul 2014 09:20:51 +0200 Subject: [PATCH] [Mac] Do not execute run loop prematurely Fixes a potential crash when destroying and recreating OpenTK.Toolkit. --- Source/OpenTK/Platform/MacOS/HIDInput.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/HIDInput.cs b/Source/OpenTK/Platform/MacOS/HIDInput.cs index 375e772..93043b2 100755 --- a/Source/OpenTK/Platform/MacOS/HIDInput.cs +++ b/Source/OpenTK/Platform/MacOS/HIDInput.cs @@ -250,8 +250,6 @@ namespace OpenTK.Platform.MacOS NativeMethods.IOHIDManagerSetDeviceMatching(hidmanager, DeviceTypes.Ref); NativeMethods.IOHIDManagerOpen(hidmanager, IOOptionBits.Zero); - - OpenTK.Platform.MacOS.Carbon.CF.CFRunLoopRunInMode(InputLoopMode, 0.0, true); } void DeviceAdded(IntPtr context, IOReturn res, IntPtr sender, IOHIDDeviceRef device) -- 2.7.4