From 339890294057abd38c550f50468c45a1bdcb396a Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Fri, 27 Sep 2013 18:55:38 +0200 Subject: [PATCH] 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.) --- Source/OpenTK/Platform/SDL2/Sdl2Factory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2Factory.cs b/Source/OpenTK/Platform/SDL2/Sdl2Factory.cs index 46870ea0..cc3fa753 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2Factory.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2Factory.cs @@ -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)