Remove a variable that is no longer needed
This commit is contained in:
parent
cbf7bd07f6
commit
5e030038f8
1 changed files with 7 additions and 11 deletions
|
@ -127,24 +127,20 @@ namespace Ryujinx.HLE.Gpu.Memory
|
|||
|
||||
bool IsCached = Cache.TryGetValue(Key, out CachedPage Cp);
|
||||
|
||||
bool PgReset = false;
|
||||
|
||||
if (!IsCached)
|
||||
{
|
||||
Cp = new CachedPage();
|
||||
|
||||
Cache.Add(Key, Cp);
|
||||
}
|
||||
else
|
||||
if (IsCached)
|
||||
{
|
||||
CpCount -= Cp.GetTotalCount();
|
||||
|
||||
SortedCache.Remove(Cp.Node);
|
||||
}
|
||||
else
|
||||
{
|
||||
Cp = new CachedPage();
|
||||
|
||||
PgReset |= Modified[Index++] && IsCached;
|
||||
Cache.Add(Key, Cp);
|
||||
}
|
||||
|
||||
if (PgReset)
|
||||
if (Modified[Index++] && IsCached)
|
||||
{
|
||||
Cp = new CachedPage();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue