diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index 5f3158a34..28c37af40 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -658,7 +658,7 @@ namespace Ryujinx.Graphics.Vulkan bool oldStencilTestEnable; bool oldDepthTestEnable; bool oldDepthWriteEnable; - Silk.NET.Vulkan.PrimitiveTopology oldTopology; + PrimitiveTopology oldTopology; Array16 oldViewports = DynamicState.Viewports; uint oldViewportsCount; @@ -668,7 +668,7 @@ namespace Ryujinx.Graphics.Vulkan oldStencilTestEnable = DynamicState.StencilTestEnable; oldDepthTestEnable = DynamicState.DepthTestEnable; oldDepthWriteEnable = DynamicState.DepthWriteEnable; - oldTopology = DynamicState.Topology; + oldTopology = _topology; oldViewportsCount = DynamicState.ViewportsCount; } else @@ -705,8 +705,6 @@ namespace Ryujinx.Graphics.Vulkan srcRegion, dstRegion); - SetPrimitiveTopology(oldTopology); - if (_supportExtDynamic) { DynamicState.SetCullMode(oldCullMode); @@ -722,9 +720,9 @@ namespace Ryujinx.Graphics.Vulkan _newState.ViewportsCount = oldViewportsCount; } - DynamicState.SetViewports(ref oldViewports, oldViewportsCount); + SetPrimitiveTopology(oldTopology); - SignalStateChange(); + DynamicState.SetViewports(ref oldViewports, oldViewportsCount); } }