From fb20e5b371531147be08ae73e5b63ee863235aee Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sun, 20 Feb 2022 15:37:02 +0000 Subject: [PATCH] Don't pass depth clip state right now (fix decals) Explicitly disabling it is incorrect. OpenGL currently automatically disables based on depth clamp, which is the behaviour if this state is omitted. --- Ryujinx.Graphics.Vulkan/PipelineState.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Ryujinx.Graphics.Vulkan/PipelineState.cs b/Ryujinx.Graphics.Vulkan/PipelineState.cs index 6da2e23eb..b97954f27 100644 --- a/Ryujinx.Graphics.Vulkan/PipelineState.cs +++ b/Ryujinx.Graphics.Vulkan/PipelineState.cs @@ -378,12 +378,6 @@ namespace Ryujinx.Graphics.Vulkan PatchControlPoints = PatchControlPoints }; - var depthClipState = new PipelineRasterizationDepthClipStateCreateInfoEXT() - { - SType = StructureType.PipelineRasterizationDepthClipStateCreateInfoExt, - DepthClipEnable = false - }; - var rasterizationState = new PipelineRasterizationStateCreateInfo() { SType = StructureType.PipelineRasterizationStateCreateInfo, @@ -396,8 +390,7 @@ namespace Ryujinx.Graphics.Vulkan DepthBiasEnable = DepthBiasEnable, DepthBiasClamp = DepthBiasClamp, DepthBiasConstantFactor = DepthBiasConstantFactor, - DepthBiasSlopeFactor = DepthBiasSlopeFactor, - PNext = &depthClipState + DepthBiasSlopeFactor = DepthBiasSlopeFactor }; var viewportState = new PipelineViewportStateCreateInfo()