From b8eb6abeccbd4a468214a4d2ad3a9b6e5e06973c Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 5 May 2020 22:02:28 -0300 Subject: Refactor shader GPU state and memory access (#1203) * Refactor shader GPU state and memory access * Fix NVDEC project build * Address PR feedback and add missing XML comments --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 9554bc6b..0f952ffd 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -315,7 +315,7 @@ namespace Ryujinx.Graphics.Gpu.Image return; } - ReadOnlySpan data = _context.PhysicalMemory.GetSpan(Address, Size); + ReadOnlySpan data = _context.PhysicalMemory.GetSpan(Address, (int)Size); // If the texture was modified by the host GPU, we do partial invalidation // of the texture by getting GPU data and merging in the pages of memory -- cgit v1.2.3