mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 10:33:05 +00:00
More changes to be inline with spec
This commit is contained in:
parent
af9de85a1b
commit
482b960740
2 changed files with 3 additions and 3 deletions
|
@ -992,11 +992,11 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public void SetPatchParameters(int vertices, ReadOnlySpan<float> defaultOuterLevel, ReadOnlySpan<float> defaultInnerLevel)
|
||||
{
|
||||
if (vertices == 0 || vertices > Gd.Capabilities.MaxTessellationPatchSize)
|
||||
if (vertices == 0 || vertices > Gd.Capabilities.MaxTessellationPatchSize || !_newState.HasTessellationControlShader)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (Gd.Capabilities.SupportsExtendedDynamicState2.ExtendedDynamicState2PatchControlPoints)
|
||||
{
|
||||
DynamicState.SetPatchControlPoints((uint)vertices);
|
||||
|
|
|
@ -578,7 +578,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
RenderPass = renderPass,
|
||||
};
|
||||
|
||||
if (!gd.Capabilities.SupportsExtendedDynamicState2.ExtendedDynamicState2PatchControlPoints)
|
||||
if (!gd.Capabilities.SupportsExtendedDynamicState2.ExtendedDynamicState2PatchControlPoints && HasTessellationControlShader)
|
||||
{
|
||||
pipelineCreateInfo.PTessellationState = &tessellationState;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue