Fixed a bug in GL.Load() where the GetProcAddress function was never called.

This commit is contained in:
the_fiddler 2007-09-29 15:27:18 +00:00
parent 2323e0cb79
commit d6265d2190

View file

@ -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