mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 08:06:59 +00:00
[Mac] Do not execute run loop prematurely
Fixes a potential crash when destroying and recreating OpenTK.Toolkit.
This commit is contained in:
parent
b0ceef3ec9
commit
864cc84019
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue