Moved context creation to GLContext constructor.
This commit is contained in:
parent
6f7286e7e0
commit
9aee0eb8d1
2 changed files with 1 additions and 3 deletions
|
@ -60,6 +60,7 @@ namespace OpenTK
|
|||
|
||||
(this as IGLContextCreationHack).SetWindowHandle(window.Handle);
|
||||
(this as IGLContextCreationHack).SelectDisplayMode(mode, window);
|
||||
this.CreateContext(true, null);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -203,9 +203,6 @@ namespace OpenTK
|
|||
// specific depth for the DisplayMode - we let the driver select one instead.
|
||||
display_mode.Color = new ColorMode(0);
|
||||
context = new GLContext(display_mode, info);
|
||||
(context as IGLContextCreationHack).SetWindowHandle(info.Handle);
|
||||
(context as IGLContextCreationHack).SelectDisplayMode(display_mode, info);
|
||||
context.CreateContext(true, null);
|
||||
idle = new PlatformIdle(info);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue