Vulkan: Use TRIANGLE_LIST when primitive restart is not supported

This commit is contained in:
Stenzek 2017-02-18 14:05:40 +10:00
parent 6965dc0481
commit 4094268009

View File

@ -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;
}