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.
This commit is contained in:
riperiperi 2022-02-20 15:37:02 +00:00
parent 1ab42e9ce8
commit fb20e5b371

View file

@ -378,12 +378,6 @@ namespace Ryujinx.Graphics.Vulkan
PatchControlPoints = PatchControlPoints PatchControlPoints = PatchControlPoints
}; };
var depthClipState = new PipelineRasterizationDepthClipStateCreateInfoEXT()
{
SType = StructureType.PipelineRasterizationDepthClipStateCreateInfoExt,
DepthClipEnable = false
};
var rasterizationState = new PipelineRasterizationStateCreateInfo() var rasterizationState = new PipelineRasterizationStateCreateInfo()
{ {
SType = StructureType.PipelineRasterizationStateCreateInfo, SType = StructureType.PipelineRasterizationStateCreateInfo,
@ -396,8 +390,7 @@ namespace Ryujinx.Graphics.Vulkan
DepthBiasEnable = DepthBiasEnable, DepthBiasEnable = DepthBiasEnable,
DepthBiasClamp = DepthBiasClamp, DepthBiasClamp = DepthBiasClamp,
DepthBiasConstantFactor = DepthBiasConstantFactor, DepthBiasConstantFactor = DepthBiasConstantFactor,
DepthBiasSlopeFactor = DepthBiasSlopeFactor, DepthBiasSlopeFactor = DepthBiasSlopeFactor
PNext = &depthClipState
}; };
var viewportState = new PipelineViewportStateCreateInfo() var viewportState = new PipelineViewportStateCreateInfo()