mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 14:51:03 +00:00
[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:
parent
f799530575
commit
6db29562cc
|
@ -104,12 +104,12 @@ namespace OpenTK.Platform.MacOS
|
||||||
{
|
{
|
||||||
if (!IsDisposed)
|
if (!IsDisposed)
|
||||||
{
|
{
|
||||||
base.Dispose(manual);
|
|
||||||
|
|
||||||
if (manual)
|
if (manual)
|
||||||
{
|
{
|
||||||
InputDriver.Dispose();
|
InputDriver.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
base.Dispose(manual);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue