mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-15 10:36:58 +00:00
Memory changes 3 (ryubing/ryujinx!202)
See merge request ryubing/ryujinx!202
This commit is contained in:
parent
ab7aeee67b
commit
92b61f9d73
43 changed files with 686 additions and 315 deletions
|
|
@ -1628,7 +1628,15 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
{
|
||||
lock (_poolOwners)
|
||||
{
|
||||
int references = _poolOwners.RemoveAll(entry => entry.Pool == pool && entry.ID == id || id == -1);
|
||||
int references = 0;
|
||||
for (int i = 0; i < _poolOwners.Count; i++)
|
||||
{
|
||||
if (_poolOwners[i].Pool == pool && _poolOwners[i].ID == id || id == -1)
|
||||
{
|
||||
_poolOwners.RemoveAt(i--);
|
||||
references++;
|
||||
}
|
||||
}
|
||||
|
||||
if (references == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue