mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-10 22:35:38 +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");
|
||||
|
||||
internal static void Initialize()
|
||||
internal static void Initialize() { }
|
||||
|
||||
static NSApplication()
|
||||
{
|
||||
Cocoa.Initialize();
|
||||
|
||||
// Create the NSAutoreleasePool
|
||||
AutoreleasePool = Cocoa.SendIntPtr(Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc), Selector.Init);
|
||||
|
||||
|
|
Loading…
Reference in a new issue