]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't apply primitive restart to list primitives
authorMikko Rasa <tdb@tdb.fi>
Thu, 6 Oct 2022 10:19:06 +0000 (13:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 6 Oct 2022 10:19:06 +0000 (13:19 +0300)
source/backends/vulkan/pipelinestate_backend.cpp

index d8e4d4a1978504373e5614aad6e59555d358e955..9e6db92fd3b8e2a3a07ccfef9f2e8f490a0df064 100644 (file)
@@ -196,7 +196,7 @@ void VulkanPipelineState::fill_graphics_creation_info(vector<char> &buffer) cons
 
        input_assembly_info->sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
        input_assembly_info->topology = static_cast<VkPrimitiveTopology>(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)
        {