From 40942680092418b0e213da9ef0576514557e53eb Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 18 Feb 2017 14:05:40 +1000 Subject: [PATCH] Vulkan: Use TRIANGLE_LIST when primitive restart is not supported --- Source/Core/VideoBackends/Vulkan/VertexManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp index 63857a8c42..bbc187ff32 100644 --- a/Source/Core/VideoBackends/Vulkan/VertexManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/VertexManager.cpp @@ -153,7 +153,10 @@ void VertexManager::vFlush() break; case PRIMITIVE_TRIANGLES: - StateTracker::GetInstance()->SetPrimitiveTopology(VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP); + StateTracker::GetInstance()->SetPrimitiveTopology( + g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP : + VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST); g_renderer->SetGenerationMode(); break; }