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
1 changed files with 1 additions and 1 deletions
|
@ -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