1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-29 13:26:01 +00:00

No need to by reference

This commit is contained in:
sunshineinabox 2024-05-15 00:54:08 -07:00
parent 558b1db792
commit 33f2a08254
2 changed files with 3 additions and 3 deletions

View file

@ -726,7 +726,7 @@ namespace Ryujinx.Graphics.Vulkan
DynamicState.SetCullMode(oldCullMode); DynamicState.SetCullMode(oldCullMode);
DynamicState.SetStencilTest(oldStencilTestEnable); DynamicState.SetStencilTest(oldStencilTestEnable);
DynamicState.SetDepthTestBool(oldDepthTestEnable, oldDepthWriteEnable); DynamicState.SetDepthTestBool(oldDepthTestEnable, oldDepthWriteEnable);
DynamicState.SetPrimitiveTopology(ref oldTopology); DynamicState.SetPrimitiveTopology(oldTopology);
} }
else else
{ {
@ -1020,7 +1020,7 @@ namespace Ryujinx.Graphics.Vulkan
var vkTopology = Gd.TopologyRemap(topology).Convert(); var vkTopology = Gd.TopologyRemap(topology).Convert();
if (_supportExtDynamic) if (_supportExtDynamic)
{ {
DynamicState.SetPrimitiveTopology(ref vkTopology); DynamicState.SetPrimitiveTopology(vkTopology);
} }
else else
{ {

View file

@ -107,7 +107,7 @@ namespace Ryujinx.Graphics.Vulkan
_dirty |= DirtyFlags.DepthTestCompareOp; _dirty |= DirtyFlags.DepthTestCompareOp;
} }
public void SetPrimitiveTopology(ref PrimitiveTopology topology) public void SetPrimitiveTopology(PrimitiveTopology topology)
{ {
Topology = topology; Topology = topology;