mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Explain comment.
This commit is contained in:
parent
3a8bf5dfa1
commit
a6ae580b9f
1 changed files with 2 additions and 1 deletions
|
|
@ -418,7 +418,8 @@ public sealed class TextureManager : SingleTaskQueue, IDisposable
|
|||
using var w = new BinaryWriter(stream);
|
||||
header.Write(w);
|
||||
w.Write(input.Pixels);
|
||||
// No idea why this is necessary, but it is.
|
||||
// Necessary due to the GC being allowed to collect after the last invocation of an object,
|
||||
// thus invalidating the ReadOnlySpan.
|
||||
GC.KeepAlive(input);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue