Some more small changes
This commit is contained in:
parent
ab7f379e11
commit
863674768d
2 changed files with 6 additions and 8 deletions
|
@ -508,18 +508,14 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
viewportState.ScissorCount = ScissorsCount;
|
||||
}
|
||||
|
||||
if (gd.Capabilities.SupportsDepthClipControl)
|
||||
if (gd.Capabilities.SupportsDepthClipControl && !gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||
{
|
||||
var viewportDepthClipControlState = new PipelineViewportDepthClipControlCreateInfoEXT
|
||||
{
|
||||
SType = StructureType.PipelineViewportDepthClipControlCreateInfoExt,
|
||||
NegativeOneToOne = DepthMode,
|
||||
};
|
||||
|
||||
if (!gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||
{
|
||||
viewportDepthClipControlState.NegativeOneToOne = DepthMode;
|
||||
}
|
||||
|
||||
viewportState.PNext = &viewportDepthClipControlState;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue