From b88b7bb977d31787f44da96f5c1c27dc614d3cbe Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 6 Oct 2022 13:19:06 +0300 Subject: [PATCH] Don't apply primitive restart to list primitives --- source/backends/vulkan/pipelinestate_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backends/vulkan/pipelinestate_backend.cpp b/source/backends/vulkan/pipelinestate_backend.cpp index d8e4d4a1..9e6db92f 100644 --- a/source/backends/vulkan/pipelinestate_backend.cpp +++ b/source/backends/vulkan/pipelinestate_backend.cpp @@ -196,7 +196,7 @@ void VulkanPipelineState::fill_graphics_creation_info(vector &buffer) cons input_assembly_info->sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; input_assembly_info->topology = static_cast(get_vulkan_primitive_type(self.primitive_type)); - input_assembly_info->primitiveRestartEnable = !has_tessellation; + input_assembly_info->primitiveRestartEnable = (self.primitive_type!=POINTS && self.primitive_type!=LINES && self.primitive_type!=TRIANGLES && self.primitive_type!=PATCHES); if(has_tessellation) { -- 2.45.2