mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 19:25:35 +00:00
Removed dependency on System.Windows.Forms.
This commit is contained in:
parent
9eeac5d40b
commit
0a9912469a
|
@ -11,7 +11,6 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Control = System.Windows.Forms.Control;
|
|
||||||
|
|
||||||
namespace OpenTK.Platform.MacOS
|
namespace OpenTK.Platform.MacOS
|
||||||
{
|
{
|
||||||
|
@ -216,6 +215,9 @@ namespace OpenTK.Platform.MacOS
|
||||||
if (carbonWindow.IsControl == false)
|
if (carbonWindow.IsControl == false)
|
||||||
return;
|
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);
|
System.Windows.Forms.Control ctrl = Control.FromHandle(carbonWindow.WindowRef);
|
||||||
|
|
||||||
if (ctrl.TopLevelControl == null)
|
if (ctrl.TopLevelControl == null)
|
||||||
|
@ -247,7 +249,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
Agl.aglEnable(Handle.Handle, Agl.ParameterNames.AGL_BUFFER_RECT);
|
Agl.aglEnable(Handle.Handle, Agl.ParameterNames.AGL_BUFFER_RECT);
|
||||||
MyAGLReportError("aglEnable");
|
MyAGLReportError("aglEnable");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
void SetDrawable(CarbonWindowInfo carbonWindow)
|
void SetDrawable(CarbonWindowInfo carbonWindow)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue