mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 03:15:40 +00:00
Moved context creation to GLContext constructor.
This commit is contained in:
parent
0ecdcd19b3
commit
ecf6365d45
|
@ -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