diff --git a/gfx/common/d3d12_common.c b/gfx/common/d3d12_common.c index 772d34bd43..ae9b4114d4 100644 --- a/gfx/common/d3d12_common.c +++ b/gfx/common/d3d12_common.c @@ -165,6 +165,10 @@ bool d3d12_init_base(d3d12_video_t* d3d12) { DXGIAdapter adapter = NULL; #ifdef DEBUG +#ifdef __WINRT__ + if (SUCCEEDED(D3D12GetDebugInterface_(&d3d12->debugController))) + d3d12->debugController->lpVtbl->EnableDebugLayer(&d3d12->debugController); +#else D3D12GetDebugInterface_(&d3d12->debugController); D3D12EnableDebugLayer(d3d12->debugController); #endif