mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 08:45:37 +00:00
[GL] Do not limit strings to StringBuilder.Capacity. Fixes issue #57
We let StringBuilder grow to fit the unmanaged string. This appears to match the default CLR marshaling behavior, which was used in OpenTK 1.0.
This commit is contained in:
parent
63dd4597c7
commit
ccd1ad0fd7
|
@ -133,7 +133,7 @@ namespace OpenTK
|
|||
throw new ArgumentNullException("sb");
|
||||
|
||||
sb.Length = 0;
|
||||
for (int i = 0; i < sb.Capacity; i++)
|
||||
for (int i = 0; ; i++)
|
||||
{
|
||||
byte b = Marshal.ReadByte(ptr, i);
|
||||
if (b == 0)
|
||||
|
|
Loading…
Reference in a new issue