Return proper CarbonWindowInfo instance instead of DummyWindowInfo.

This commit is contained in:
the_fiddler 2009-11-06 15:33:53 +00:00
parent 92e2104c9d
commit e2b3bda885

View file

@ -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;
}
}