From 18e64274003fa1dc7c070a5e0707e8db2e105366 Mon Sep 17 00:00:00 2001
From: Mary <57835969+h1k421@users.noreply.github.com>
Date: Wed, 29 Apr 2020 20:30:54 +0200
Subject: [PATCH] Fix OpenGL context creation on macOS

Tested on macOS 10.13.
---
 GLWidget/GLWidget.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/GLWidget/GLWidget.cs b/GLWidget/GLWidget.cs
index 03bb00d..17936e6 100644
--- a/GLWidget/GLWidget.cs
+++ b/GLWidget/GLWidget.cs
@@ -332,13 +332,13 @@ namespace OpenTK
 		{
 			IntPtr windowHandle = gdk_quartz_window_get_nswindow(this.Window.Handle);
 			//IntPtr viewHandle = gdk_quartz_window_get_nsview(this.GdkWindow.Handle);
-			return Utilities.CreateMacOSCarbonWindowInfo(windowHandle, true, true);
+			return Utilities.CreateMacOSWindowInfo(windowHandle);
 		}
 
-		[SuppressUnmanagedCodeSecurity, DllImport("libgdk-quartz-2.0.0.dylib")]
+		[SuppressUnmanagedCodeSecurity, DllImport("libgdk-3.0.dylib")]
 		static extern IntPtr gdk_quartz_window_get_nswindow(IntPtr handle);
 
-		[SuppressUnmanagedCodeSecurity, DllImport("libgdk-quartz-2.0.0.dylib")]
+		[SuppressUnmanagedCodeSecurity, DllImport("libgdk-3.0.dylib")]
 		static extern IntPtr gdk_quartz_window_get_nsview(IntPtr handle);
 
 		#endregion