mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Keep the texture alive during write.
This commit is contained in:
parent
bc6e9d1d84
commit
00adaca32e
1 changed files with 2 additions and 0 deletions
|
|
@ -418,6 +418,8 @@ public sealed class TextureManager : SingleTaskQueue, IDisposable
|
||||||
using var w = new BinaryWriter(stream);
|
using var w = new BinaryWriter(stream);
|
||||||
header.Write(w);
|
header.Write(w);
|
||||||
w.Write(input.Pixels);
|
w.Write(input.Pixels);
|
||||||
|
// No idea why this is necessary, but it is.
|
||||||
|
GC.KeepAlive(input);
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly struct ImageInputData
|
private readonly struct ImageInputData
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue