diff options
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs b/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs index 8e8313ae..9ab7e292 100644 --- a/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs +++ b/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs @@ -6,15 +6,13 @@ namespace Ryujinx.Graphics.Gpu.Image { private const int MaxCapacity = 4; - private GpuContext _context; - private TextureManager _textureManager; + private GpuContext _context; private LinkedList<TexturePool> _pools; - public TexturePoolCache(GpuContext context, TextureManager textureManager) + public TexturePoolCache(GpuContext context) { - _context = context; - _textureManager = textureManager; + _context = context; _pools = new LinkedList<TexturePool>(); } @@ -42,7 +40,7 @@ namespace Ryujinx.Graphics.Gpu.Image } // If not found, create a new one. - pool = new TexturePool(_context, _textureManager, address, maximumId); + pool = new TexturePool(_context, address, maximumId); pool.CacheNode = _pools.AddLast(pool); |