Moved context creation to GLContext constructor.

This commit is contained in:
the_fiddler 2008-01-15 12:25:22 +00:00
parent 6f7286e7e0
commit 9aee0eb8d1
2 changed files with 1 additions and 3 deletions

View file

@ -60,6 +60,7 @@ namespace OpenTK
(this as IGLContextCreationHack).SetWindowHandle(window.Handle);
(this as IGLContextCreationHack).SelectDisplayMode(mode, window);
this.CreateContext(true, null);
}
#endregion

View file

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