2 Commits

Author SHA1 Message Date
Lorenz Junglas
f3873bdd58 ! Fix ByteStream copy reading pooled buffer after Dispose (#5258)
ByteStream is a ref struct so it gets copied around freely, and we give the buffer back to the pool on Dispose. problem is a copy you took before disposing still points at that buffer, so it can read whatever gets written into it next.

To fix this we version each buffer and assign a shared owner that gets invalidated as soon as one copy disposes the bytestream.
2026-07-07 21:55:22 +02:00
Garry Newman
d95169d8fa Unit Test Cleanup (#5064)
* Move all unit tests to Engine/Tests
* Fix Margin.EdgeSubtract
* Fix Capsule.Contains
* EnvironmentVariables.Remove if it's null
* Fixed ray trace never returning startedsolid
* Fix HistoryList.Navigate on empty list
* Fix GameObject.WorldPosition accepting NaNs
* Fix flex: initial expanding to the wrong grow/shrink
* Translation.TryConvert shouldn't throw on invalid enum strings
* Skip sound file tests on machines with no audio device
2026-06-12 13:23:50 +01:00