mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Vulkan: Use TRIANGLE_LIST when primitive restart is not supported
This commit is contained in:
parent
6965dc0481
commit
4094268009
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user