mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 05:25:58 +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).SetWindowHandle(window.Handle);
|
||||||
(this as IGLContextCreationHack).SelectDisplayMode(mode, window);
|
(this as IGLContextCreationHack).SelectDisplayMode(mode, window);
|
||||||
|
this.CreateContext(true, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -203,9 +203,6 @@ namespace OpenTK
|
||||||
// specific depth for the DisplayMode - we let the driver select one instead.
|
// specific depth for the DisplayMode - we let the driver select one instead.
|
||||||
display_mode.Color = new ColorMode(0);
|
display_mode.Color = new ColorMode(0);
|
||||||
context = new GLContext(display_mode, info);
|
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);
|
idle = new PlatformIdle(info);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue