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:
Stefanos A. 2013-09-27 18:55:38 +02:00
parent 0fdef8eb23
commit 3398902940

View file

@ -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)