mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 19:55:27 +00:00
Fixed a bug in GL.Load() where the GetProcAddress function was never called.
This commit is contained in:
parent
f86e6583e3
commit
bd1bf3ca39
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue