Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities.
authorJarl Gullberg <jarl.gullberg@gmail.com>
Wed, 20 Sep 2017 14:52:45 +0000 (16:52 +0200)
committerJarl Gullberg <jarl.gullberg@gmail.com>
Wed, 20 Sep 2017 14:52:45 +0000 (16:52 +0200)
src/OpenTK/Platform/Utilities.cs
src/OpenTK/Platform/Windows/WglHelper.cs

index a1065bd..4a63c8a 100644 (file)
@@ -182,7 +182,7 @@ namespace OpenTK.Platform
             #if WIN32
             if (Configuration.RunningOnWindows)
             {
-                return Platform.Windows.Wgl.GetProcAddress;
+                return Platform.Windows.Wgl.GetAddress;
             }
             #endif
             #if X11
index 226e843..70d0c82 100644 (file)
@@ -94,7 +94,7 @@ namespace OpenTK.Platform.Windows
             get { return sync; }
         }
 
-        private IntPtr GetAddress(string function_string)
+        internal static IntPtr GetAddress(string function_string)
         {
             IntPtr address = Wgl.GetProcAddress(function_string);
             if (!IsValid(address))