From 9977acad0fe08ee98a8174ce1c5609be22ba67ee Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 23 Aug 2018 01:54:59 -0300 Subject: [PATCH] Fix BinarySearchLt to return less than rather than less than or equal value (#372) --- Ryujinx.HLE/HOS/Services/Nv/NvGpuAS/NvGpuASCtx.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ryujinx.HLE/HOS/Services/Nv/NvGpuAS/NvGpuASCtx.cs b/Ryujinx.HLE/HOS/Services/Nv/NvGpuAS/NvGpuASCtx.cs index d69ec719c..7b6a8676b 100644 --- a/Ryujinx.HLE/HOS/Services/Nv/NvGpuAS/NvGpuASCtx.cs +++ b/Ryujinx.HLE/HOS/Services/Nv/NvGpuAS/NvGpuASCtx.cs @@ -187,7 +187,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvGpuAS { Left = Middle + 1; - LtRg = Rg; + if ((ulong)Position > Rg.Start) + { + LtRg = Rg; + } } }