From 4edd76d8bb59bd105c476766c33b7d7eed631dc0 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Tue, 28 Sep 2021 14:47:42 +0200 Subject: [PATCH] tests: Fix validation error in test_null_rtv. Signed-off-by: Hans-Kristian Arntzen --- tests/d3d12_descriptors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/d3d12_descriptors.c b/tests/d3d12_descriptors.c index 0c96f77b..70a42ada 100644 --- a/tests/d3d12_descriptors.c +++ b/tests/d3d12_descriptors.c @@ -3400,6 +3400,7 @@ void test_null_rtv(void) /* Attempting to clear a NULL RTV crashes on native D3D12, so try to draw something instead */ ID3D12GraphicsCommandList_SetGraphicsRootSignature(command_list, context.root_signature); ID3D12GraphicsCommandList_SetPipelineState(command_list, context.pipeline_state); + ID3D12GraphicsCommandList_IASetPrimitiveTopology(command_list, D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); ID3D12GraphicsCommandList_DrawInstanced(command_list, 3, 1, 0, 0); transition_sub_resource_state(command_list, context.render_target, 0,