Fix same textures with unmapped start being considered different
This commit is contained in:
parent
d97e995e59
commit
ba207bf253
1 changed files with 17 additions and 1 deletions
|
@ -4,6 +4,22 @@ namespace Ryujinx.Memory.Range
|
|||
{
|
||||
MultiRange Range { get; }
|
||||
|
||||
ulong BaseAddress => Range.GetSubRange(0).Address;
|
||||
ulong BaseAddress
|
||||
{
|
||||
get
|
||||
{
|
||||
for (int index = 0; index < Range.Count; index++)
|
||||
{
|
||||
MemoryRange subRange = Range.GetSubRange(index);
|
||||
|
||||
if (subRange.Address != ulong.MaxValue)
|
||||
{
|
||||
return subRange.Address;
|
||||
}
|
||||
}
|
||||
|
||||
return ulong.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue