From 381abda2c8dc85f007511fe9c90b22e260a6788e Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Mon, 9 Sep 2024 09:01:00 -0700 Subject: [PATCH] Primitive restart is enabled/disabled based on the original topology before its converted to its topology class, make this behavior consistent --- src/Ryujinx.Graphics.Vulkan/PipelineBase.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index 7bf4a346aa..f31f50b170 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -676,7 +676,7 @@ namespace Ryujinx.Graphics.Vulkan if (_supportExtDynamic) { - if (oldTopologyClass != _newState.Topology.ConvertToClass()) + if (oldTopologyClass != _newState.Topology) { _newState.Topology = oldTopology; } @@ -1048,9 +1048,7 @@ namespace Ryujinx.Graphics.Vulkan if (_supportExtDynamic) { - var newTopologyClass = vkTopology.ConvertToClass(); - - if ((_newState.Topology.ConvertToClass() != newTopologyClass)) + if ((_newState.Topology != vkTopology)) { _newState.Topology = vkTopology; }