vkd3d: Ignore redundant IASetPrimitiveTopology() calls.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2019-03-19 14:40:58 +01:00 committed by Alexandre Julliard
parent 449d36a7e7
commit f3c9229cc3

View File

@ -3008,6 +3008,9 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetPrimitiveTopology(ID3D12Gr
return; return;
} }
if (list->primitive_topology == topology)
return;
list->primitive_topology = topology; list->primitive_topology = topology;
d3d12_command_list_invalidate_current_pipeline(list); d3d12_command_list_invalidate_current_pipeline(list);
} }