From 505700419bbcf92ba21052b7db0bde75d56b875b Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 20 May 2018 08:36:35 -0700 Subject: [PATCH] Enable PrimitiveRestart in vulkan --- lib/graphicsdev/Vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index 2a721e8..84b6172 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -2254,7 +2254,7 @@ public: assemblyInfo.pNext = nullptr; assemblyInfo.flags = 0; assemblyInfo.topology = PRIMITIVE_TABLE[int(m_prim)]; - assemblyInfo.primitiveRestartEnable = VK_FALSE; + assemblyInfo.primitiveRestartEnable = VK_TRUE; VkPipelineViewportStateCreateInfo viewportInfo = {}; viewportInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;