From: thefiddler Date: Wed, 23 Jul 2014 07:20:51 +0000 (+0200) Subject: [Mac] Do not execute run loop prematurely X-Git-Tag: 2.0-0~105^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=864cc84019d49b7b2037cc18205c99059960e204;p=platform%2Fcore%2Fcsapi%2Fopentk.git [Mac] Do not execute run loop prematurely Fixes a potential crash when destroying and recreating OpenTK.Toolkit. --- 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)