Moved context creation to GLContext constructor.

This commit is contained in:
the_fiddler 2008-01-15 12:25:22 +00:00
parent 0ecdcd19b3
commit ecf6365d45
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