Fixed a bug in GL.Load() where the GetProcAddress function was never called.
This commit is contained in:
parent
f86e6583e3
commit
bd1bf3ca39
1 changed files with 2 additions and 3 deletions
|
@ -314,14 +314,13 @@ namespace OpenTK.OpenGL
|
|||
return false;
|
||||
|
||||
Delegate old = f.GetValue(null) as Delegate;
|
||||
Delegate @new = f.GetValue(null) as Delegate;
|
||||
Delegate @new = GetDelegate(f.Name, f.FieldType);
|
||||
if (old.Target != @new.Target)
|
||||
{
|
||||
f.SetValue(null, @new);
|
||||
rebuildExtensionList = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return @new != null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue