From 1f33a6dd84d67a21360326b292d639a0a9359721 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Wed, 20 Sep 2017 16:52:45 +0200 Subject: [PATCH] Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities. --- src/OpenTK/Platform/Utilities.cs | 2 +- src/OpenTK/Platform/Windows/WglHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenTK/Platform/Utilities.cs b/src/OpenTK/Platform/Utilities.cs index a1065bd9..4a63c8a0 100644 --- a/src/OpenTK/Platform/Utilities.cs +++ b/src/OpenTK/Platform/Utilities.cs @@ -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 diff --git a/src/OpenTK/Platform/Windows/WglHelper.cs b/src/OpenTK/Platform/Windows/WglHelper.cs index 226e8430..70d0c821 100644 --- a/src/OpenTK/Platform/Windows/WglHelper.cs +++ b/src/OpenTK/Platform/Windows/WglHelper.cs @@ -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))