diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-07-19 08:54:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 08:54:02 -0300 |
commit | 54b598ffe4f1ba5cc55c947a2cb5192829770088 (patch) | |
tree | a3d05f09765b657b43b4682088cc8849952ffd04 /drivers/vulkan/rendering_device_vulkan.cpp | |
parent | e1547798d661e972e06860a33b92f7cbd6ec69d0 (diff) | |
parent | 76e25438c9e626dea24fa8ef857ed01584acbafa (diff) |
Merge pull request #50501 from reduz/fix-forward-mobile
Fixes to forward mobile
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.cpp')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 7e1b4788e2..5bf3bbf8a4 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -5808,7 +5808,7 @@ RID RenderingDeviceVulkan::render_pipeline_create(RID p_shader, FramebufferForma tessellation_create_info.sType = VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO; tessellation_create_info.pNext = nullptr; tessellation_create_info.flags = 0; - ERR_FAIL_COND_V(p_rasterization_state.patch_control_points < 1 || p_rasterization_state.patch_control_points > limits.maxTessellationPatchSize, RID()); + ERR_FAIL_COND_V(limits.maxTessellationPatchSize > 0 && (p_rasterization_state.patch_control_points < 1 || p_rasterization_state.patch_control_points > limits.maxTessellationPatchSize), RID()); tessellation_create_info.patchControlPoints = p_rasterization_state.patch_control_points; VkPipelineViewportStateCreateInfo viewport_state_create_info; |