[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.
This commit is contained in:
thefiddler 2014-07-23 23:23:14 +02:00
parent f799530575
commit 6db29562cc

View file

@ -104,12 +104,12 @@ namespace OpenTK.Platform.MacOS
{
if (!IsDisposed)
{
base.Dispose(manual);
if (manual)
{
InputDriver.Dispose();
}
base.Dispose(manual);
}
}