From 9bcc8374daa6df7bb07e419790aebc44afcfd022 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Sat, 7 Sep 2024 20:09:38 -0700 Subject: [PATCH] Only attempt to change topology class if needed --- src/Ryujinx.Graphics.Vulkan/PipelineState.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs index ad9d2d657d..4b37fb9b0a 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs @@ -408,7 +408,10 @@ namespace Ryujinx.Graphics.Vulkan PrimitiveRestartEnable &= topologySupportsRestart; } - if (_supportsExtDynamicState) + if (_supportsExtDynamicState && (Topology != PrimitiveTopology.LineList || + Topology != PrimitiveTopology.TriangleStrip || + Topology != PrimitiveTopology.PointList || + Topology != PrimitiveTopology.PatchList)) { Topology = Topology.ConvertToClass(); }