Merge pull request #653 from Nihlus/getaddress-wgl-fix

Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities
This commit is contained in:
Jarl Gullberg 2017-09-24 12:05:56 +02:00 committed by GitHub
commit db4546d896
2 changed files with 2 additions and 2 deletions

View file

@ -182,7 +182,7 @@ namespace OpenTK.Platform
#if WIN32 #if WIN32
if (Configuration.RunningOnWindows) if (Configuration.RunningOnWindows)
{ {
return Platform.Windows.Wgl.GetProcAddress; return Platform.Windows.Wgl.GetAddress;
} }
#endif #endif
#if X11 #if X11

View file

@ -94,7 +94,7 @@ namespace OpenTK.Platform.Windows
get { return sync; } get { return sync; }
} }
private IntPtr GetAddress(string function_string) internal static IntPtr GetAddress(string function_string)
{ {
IntPtr address = Wgl.GetProcAddress(function_string); IntPtr address = Wgl.GetProcAddress(function_string);
if (!IsValid(address)) if (!IsValid(address))