mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-09-08 10:27:50 +00:00
[Mac] Remove call to NewEventHandlerUPP
NewEventHandlerUPP fails to load when running through MonoKickstart. It appears that this function is only used for old PPC systems that had trouble with function pointers - sample code online indicates that we do not need to call this.
This commit is contained in:
parent
cf3a30d024
commit
88a60b14c5
|
@ -32,6 +32,7 @@ using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using OpenTK.Input;
|
using OpenTK.Input;
|
||||||
|
@ -232,7 +233,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
};
|
};
|
||||||
|
|
||||||
MacOSEventHandler handler = EventHandler;
|
MacOSEventHandler handler = EventHandler;
|
||||||
uppHandler = API.NewEventHandlerUPP(handler);
|
uppHandler = Marshal.GetFunctionPointerForDelegate(handler);
|
||||||
|
|
||||||
API.InstallWindowEventHandler(window.Handle, uppHandler, eventTypes,
|
API.InstallWindowEventHandler(window.Handle, uppHandler, eventTypes,
|
||||||
window.Handle, IntPtr.Zero);
|
window.Handle, IntPtr.Zero);
|
||||||
|
|
Loading…
Reference in a new issue