Return proper CarbonWindowInfo instance instead of DummyWindowInfo.
This commit is contained in:
parent
92e2104c9d
commit
e2b3bda885
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue