From e2b3bda8857e7373e793ec823291a88341af1fe2 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 6 Nov 2009 15:33:53 +0000 Subject: [PATCH] Return proper CarbonWindowInfo instance instead of DummyWindowInfo. --- Source/GLControl/CarbonGLControl.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/GLControl/CarbonGLControl.cs b/Source/GLControl/CarbonGLControl.cs index c24b2a75..22dfef8e 100644 --- a/Source/GLControl/CarbonGLControl.cs +++ b/Source/GLControl/CarbonGLControl.cs @@ -39,11 +39,14 @@ namespace OpenTK { GraphicsMode mode; Control control; + IWindowInfo window_info; internal CarbonGLControl(GraphicsMode mode, Control owner) { this.mode = mode; this.control = owner; + + window_info = Utilities.CreateMacOSCarbonWindowInfo(control.Handle, false, true); } #region IGLControl Members @@ -68,7 +71,7 @@ namespace OpenTK { get { - return Utilities.CreateDummyWindowInfo(); + return window_info; } }