Skip to content

Commit dae5311

Browse files
🐛 Context API, ensure rented buffers are marked as such
1 parent 99e91fe commit dae5311

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lite3DotNet/Lite3Context.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public void Dispose()
111111
ArrayPool<byte>.Shared.Return(Buffer);
112112
}
113113

114-
internal Lite3Core.Status Grow()
114+
private Lite3Core.Status Grow()
115115
{
116116
var status = Lite3Buffer.Grow(_arrayPool, _isRentedBuffer, Buffer, out Buffer);
117-
118-
_isRentedBuffer = true;
117+
118+
_isRentedBuffer = status == Lite3Core.Status.GrewBuffer;
119119

120120
return status;
121121
}

0 commit comments

Comments
 (0)