mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 20:26:58 +00:00
Use Wgl.Import.GetCurrentContext DllImport directly
Wgl is implemented using the regular DllImport + delegate approach, in order to support extensions. The delegates have not been armed at this point, so we need to use the DllImport directly. The whole wgl API should be revisited (we are using only a tiny portion.)
This commit is contained in:
parent
0fdef8eb23
commit
3398902940
|
@ -40,7 +40,7 @@ namespace OpenTK.Platform.SDL2
|
|||
{
|
||||
IntPtr current;
|
||||
if (Configuration.RunningOnWindows)
|
||||
current = OpenTK.Platform.Windows.Wgl.GetCurrentContext();
|
||||
current = OpenTK.Platform.Windows.Wgl.Imports.GetCurrentContext();
|
||||
else if (Configuration.RunningOnX11)
|
||||
current = OpenTK.Platform.X11.Glx.GetCurrentContext();
|
||||
else if (Configuration.RunningOnMacOS)
|
||||
|
|
Loading…
Reference in a new issue