From 0a510d7055180c0b85db475023770013420ae24a Mon Sep 17 00:00:00 2001 From: GABO1423 <35014183+GABO1423@users.noreply.github.com> Date: Wed, 9 Aug 2023 04:37:20 -0400 Subject: [PATCH] (UWP) Fix d3d12 Driver in Debug Builds (#15567) --- gfx/drivers/d3d12.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gfx/drivers/d3d12.c b/gfx/drivers/d3d12.c index d4da45c4ea5..308ec6f259a 100644 --- a/gfx/drivers/d3d12.c +++ b/gfx/drivers/d3d12.c @@ -2444,14 +2444,9 @@ static void d3d12_init_base(d3d12_video_t* d3d12) int i = 0; DXGIAdapter adapter = NULL; #ifdef DEBUG -#ifdef __WINRT__ - if (SUCCEEDED(D3D12GetDebugInterface(uuidof(ID3D12Debug), (void**)&d3d12->debugController))) - d3d12->debugController->lpVtbl->EnableDebugLayer(&d3d12->debugController); -#else if (SUCCEEDED(D3D12GetDebugInterface(uuidof(ID3D12Debug), (void**)&d3d12->debugController))) d3d12->debugController->lpVtbl->EnableDebugLayer(d3d12->debugController); #endif -#endif #ifdef __WINRT__ DXGICreateFactory2(&d3d12->factory);