From ba91f5d401bf5f9fc39aaa30feac2600e82f9c42 Mon Sep 17 00:00:00 2001
From: riperiperi <rhy3756547@hotmail.com>
Date: Thu, 22 Feb 2024 09:43:22 +0000
Subject: Vulkan: Properly reset barrier batch when splitting due to
 mismatching flags (#6345)

Forgot to set the end variable here. Should stop it from crashing when this path is taken.
---
 src/Ryujinx.Graphics.Vulkan/BarrierBatch.cs | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src')

diff --git a/src/Ryujinx.Graphics.Vulkan/BarrierBatch.cs b/src/Ryujinx.Graphics.Vulkan/BarrierBatch.cs
index aa158f03..24642af2 100644
--- a/src/Ryujinx.Graphics.Vulkan/BarrierBatch.cs
+++ b/src/Ryujinx.Graphics.Vulkan/BarrierBatch.cs
@@ -144,6 +144,7 @@ namespace Ryujinx.Graphics.Vulkan
                                     i -= deleteCount;
 
                                     firstMatch = -1;
+                                    end = list.Count;
                                 }
                             }
                         }
-- 
cgit v1.2.3-70-g09d2