From 424166acd8e3a583d92e77d4b15485cae285ac61 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Tue, 28 May 2024 13:01:08 -0700 Subject: [PATCH] Oversight --- src/Ryujinx.Graphics.Vulkan/PipelineBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index cadc3d2aeb..9e387fd5df 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -727,10 +727,18 @@ namespace Ryujinx.Graphics.Vulkan if (_supportExtDynamic) { + var oldTopologyClass = GetTopologyClass(oldTopology); + var newTopologyClass = GetTopologyClass(DynamicState.Topology); + DynamicState.SetCullMode(oldCullMode); DynamicState.SetStencilTest(oldStencilTestEnable); DynamicState.SetDepthTestBool(oldDepthTestEnable, oldDepthWriteEnable); DynamicState.SetPrimitiveTopology(oldTopology); + + if (oldTopologyClass != newTopologyClass) + { + _newState.Topology = oldTopology; + } } else {