[Perf] Fix embarassing performance nightmare

This commit is contained in:
RHY3756547 2018-10-29 16:13:10 +00:00
parent f6a1c2efa2
commit 13528fe2b6

View file

@ -586,7 +586,7 @@ namespace Microsoft.Xna.Framework.Graphics
{
lock (_resourcesLock)
{
_resources.RemoveWhere(wr => !wr.IsAlive);
_resources.Remove(resourceReference);
}
}