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 f86e6583e3
commit bd1bf3ca39

View file

@ -314,14 +314,13 @@ namespace OpenTK.OpenGL
return false; return false;
Delegate old = f.GetValue(null) as Delegate; 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) if (old.Target != @new.Target)
{ {
f.SetValue(null, @new); f.SetValue(null, @new);
rebuildExtensionList = true; rebuildExtensionList = true;
return true;
} }
return false; return @new != null;
} }
#endregion #endregion