From 5894ef043b90f7a41597cd141178ac41a17eab07 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Wed, 15 May 2024 00:54:08 -0700 Subject: [PATCH] No need to by reference --- src/Ryujinx.Graphics.Vulkan/PipelineBase.cs | 4 ++-- src/Ryujinx.Graphics.Vulkan/PipelineDynamicState.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs index 3c67d952a..b49233834 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineBase.cs @@ -726,7 +726,7 @@ namespace Ryujinx.Graphics.Vulkan DynamicState.SetCullMode(oldCullMode); DynamicState.SetStencilTest(oldStencilTestEnable); DynamicState.SetDepthTestBool(oldDepthTestEnable, oldDepthWriteEnable); - DynamicState.SetPrimitiveTopology(ref oldTopology); + DynamicState.SetPrimitiveTopology(oldTopology); } else { @@ -1021,7 +1021,7 @@ namespace Ryujinx.Graphics.Vulkan var vkTopology = Gd.TopologyRemap(topology).Convert(); if (_supportExtDynamic) { - DynamicState.SetPrimitiveTopology(ref vkTopology); + DynamicState.SetPrimitiveTopology(vkTopology); } else { diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineDynamicState.cs b/src/Ryujinx.Graphics.Vulkan/PipelineDynamicState.cs index 916b065bd..aaa97660a 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineDynamicState.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineDynamicState.cs @@ -107,7 +107,7 @@ namespace Ryujinx.Graphics.Vulkan _dirty |= DirtyFlags.DepthTestCompareOp; } - public void SetPrimitiveTopology(ref PrimitiveTopology topology) + public void SetPrimitiveTopology(PrimitiveTopology topology) { Topology = topology;