mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +00:00
[Graphics] Redirect GetAddress(string)
GetAddress(string) now calls GetAddress(IntPtr) internally. This reduces the number of APIs that must be implemented for each platform.
This commit is contained in:
parent
9605940661
commit
fbeac9c323
|
@ -601,7 +601,10 @@ namespace OpenTK.Graphics
|
||||||
/// </returns>
|
/// </returns>
|
||||||
IntPtr IGraphicsContextInternal.GetAddress(string function)
|
IntPtr IGraphicsContextInternal.GetAddress(string function)
|
||||||
{
|
{
|
||||||
return (implementation as IGraphicsContextInternal).GetAddress(function);
|
IntPtr name = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(function);
|
||||||
|
IntPtr address = (implementation as IGraphicsContextInternal).GetAddress(name);
|
||||||
|
System.Runtime.InteropServices.Marshal.FreeHGlobal(name);
|
||||||
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue