mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-05-31 20:00:30 +00:00
[Mac] Ensure Cocoa bindings are initialized first
This commit is contained in:
parent
6abca6ddf7
commit
ac2ae4a4bb
|
@ -41,8 +41,12 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
static readonly IntPtr selQuit = Selector.Get("quit");
|
static readonly IntPtr selQuit = Selector.Get("quit");
|
||||||
|
|
||||||
internal static void Initialize()
|
internal static void Initialize() { }
|
||||||
|
|
||||||
|
static NSApplication()
|
||||||
{
|
{
|
||||||
|
Cocoa.Initialize();
|
||||||
|
|
||||||
// Create the NSAutoreleasePool
|
// Create the NSAutoreleasePool
|
||||||
AutoreleasePool = Cocoa.SendIntPtr(Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc), Selector.Init);
|
AutoreleasePool = Cocoa.SendIntPtr(Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc), Selector.Init);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue