From adc7528b54e05374117233bb86ff5f16dc2e6ea1 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Wed, 31 Jul 2024 18:56:06 -0700 Subject: [PATCH] Why cast when you don't need to cast --- src/Ryujinx.Graphics.Vulkan/PipelineState.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs index 261decea8..86939b0be 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineState.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineState.cs @@ -575,7 +575,7 @@ namespace Ryujinx.Graphics.Vulkan dynamicStates[5] = DynamicState.BlendConstants; dynamicStates[6] = DynamicState.DepthBias; - int currentIndex = 7; + uint currentIndex = 7; if (!isMoltenVk) { @@ -622,7 +622,7 @@ namespace Ryujinx.Graphics.Vulkan var pipelineDynamicStateCreateInfo = new PipelineDynamicStateCreateInfo { SType = StructureType.PipelineDynamicStateCreateInfo, - DynamicStateCount = (uint)currentIndex, + DynamicStateCount = currentIndex, PDynamicStates = dynamicStates, };