fix uwp debug build (#13918)

* fix uwp debug build
This commit is contained in:
tunip3 2022-05-06 20:49:21 +01:00 committed by GitHub
parent 9a3b8f4a0a
commit ba2203e1e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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