From 0a9912469a32034744f38f526927c1820b4d1bc4 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 8 Nov 2010 21:44:56 +0000 Subject: [PATCH] Removed dependency on System.Windows.Forms. --- Source/OpenTK/Platform/MacOS/AglContext.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/AglContext.cs b/Source/OpenTK/Platform/MacOS/AglContext.cs index 341d8fe9..4d52d337 100644 --- a/Source/OpenTK/Platform/MacOS/AglContext.cs +++ b/Source/OpenTK/Platform/MacOS/AglContext.cs @@ -11,7 +11,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; -using Control = System.Windows.Forms.Control; namespace OpenTK.Platform.MacOS { @@ -215,7 +214,10 @@ namespace OpenTK.Platform.MacOS { if (carbonWindow.IsControl == false) return; - + + // Todo: See if there is a way around using WinForms. + throw new NotImplementedException(); +#if false System.Windows.Forms.Control ctrl = Control.FromHandle(carbonWindow.WindowRef); if (ctrl.TopLevelControl == null) @@ -247,7 +249,7 @@ namespace OpenTK.Platform.MacOS Agl.aglEnable(Handle.Handle, Agl.ParameterNames.AGL_BUFFER_RECT); MyAGLReportError("aglEnable"); - +#endif } void SetDrawable(CarbonWindowInfo carbonWindow) {