From d40672304962cac80476022c12f482a588b8ac31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 21 Sep 2016 13:19:16 +0200 Subject: [PATCH] tests: Enable debug layer. --- tests/d3d12.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/d3d12.c b/tests/d3d12.c index 14cdc7bd..719e453d 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -117,5 +117,13 @@ static void test_create_device(void) START_TEST(d3d12) { + ID3D12Debug *debug; + + if (SUCCEEDED(D3D12GetDebugInterface(&IID_ID3D12Debug, (void **)&debug))) + { + ID3D12Debug_EnableDebugLayer(debug); + ID3D12Debug_Release(debug); + } + test_create_device(); }