mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-24 20:01:07 +00:00
MacOS: Fix crash in CheckEnterLeaveEvents if using WinForms too.
This commit is contained in:
parent
69c05cdb20
commit
1bc11bb807
|
@ -563,6 +563,9 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
private void CheckEnterLeaveEvents(IntPtr eventWindowRef, Point pt)
|
private void CheckEnterLeaveEvents(IntPtr eventWindowRef, Point pt)
|
||||||
{
|
{
|
||||||
|
if (window == null)
|
||||||
|
return;
|
||||||
|
|
||||||
bool thisIn = eventWindowRef == window.WindowRef;
|
bool thisIn = eventWindowRef == window.WindowRef;
|
||||||
|
|
||||||
if (pt.Y < 0)
|
if (pt.Y < 0)
|
||||||
|
|
Loading…
Reference in a new issue