From: Mikko Rasa Date: Thu, 6 Oct 2022 10:19:06 +0000 (+0300) Subject: Don't apply primitive restart to list primitives X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b88b7bb977d31787f44da96f5c1c27dc614d3cbe;p=libs%2Fgl.git Don't apply primitive restart to list primitives --- 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) {