From 33f2a08254819df2eea2f431d089c7a0c275f190 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 ff4293d00..61e008290 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 { @@ -1020,7 +1020,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;