mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Vulkan: Use TRIANGLE_LIST when primitive restart is not supported
This commit is contained in:
@ -153,7 +153,10 @@ void VertexManager::vFlush()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PRIMITIVE_TRIANGLES:
|
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();
|
g_renderer->SetGenerationMode();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user