[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:
thefiddler 2014-04-04 08:46:32 +02:00
parent cf3a30d024
commit 88a60b14c5

View file

@ -32,6 +32,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using OpenTK.Graphics;
using OpenTK.Input;
@ -232,7 +233,7 @@ namespace OpenTK.Platform.MacOS
};
MacOSEventHandler handler = EventHandler;
uppHandler = API.NewEventHandlerUPP(handler);
uppHandler = Marshal.GetFunctionPointerForDelegate(handler);
API.InstallWindowEventHandler(window.Handle, uppHandler, eventTypes,
window.Handle, IntPtr.Zero);