[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:
thefiddler 2014-02-07 15:57:36 +01:00
parent 63dd4597c7
commit ccd1ad0fd7

View file

@ -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)