Fix wrong maximum id on sampler pool in some cases

This commit is contained in:
gdkchan 2019-12-06 20:19:12 -03:00 committed by Thog
parent cb171f6ebf
commit 17fb11ddb9
6 changed files with 14 additions and 10 deletions

View file

@ -11,12 +11,15 @@ namespace Ryujinx.Graphics.Gpu.Image
protected T[] Items;
public int MaximumId { get; }
public ulong Address { get; }
public ulong Size { get; }
public Pool(GpuContext context, ulong address, int maximumId)
{
Context = context;
Context = context;
MaximumId = maximumId;
int count = maximumId + 1;

View file

@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Gpu.Image
if (_samplerPool != null)
{
if (_samplerPool.Address == address)
if (_samplerPool.Address == address && _samplerPool.MaximumId >= maximumId)
{
return;
}