mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 08:25:37 +00:00
Fixed a bug in GL.Load() where the GetProcAddress function was never called.
This commit is contained in:
parent
2323e0cb79
commit
d6265d2190
|
@ -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