From: Józef Kucia jkucia@codeweavers.com
In order to exercise that the destroyed heap isn't accessed.
Signed-off-by: Józef Kucia jkucia@codeweavers.com --- tests/d3d12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/d3d12.c b/tests/d3d12.c index 5177607fbbcc..b8eb4ab64b1f 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -6769,11 +6769,11 @@ static void test_map_placed_resources(void) release_resource_readback(&rb);
ID3D12Resource_Release(uav_buffer); - for (i = 0; i < ARRAY_SIZE(cb); ++i) - ID3D12Resource_Release(cb[i]); ID3D12Resource_Release(readback_buffer); ID3D12Heap_Release(upload_heap); ID3D12Heap_Release(readback_heap); + for (i = 0; i < ARRAY_SIZE(cb); ++i) + ID3D12Resource_Release(cb[i]); destroy_test_context(&context); }