Merge pull request #653 from Nihlus/getaddress-wgl-fix
Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities
This commit is contained in:
commit
db4546d896
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue