(UWP) Fix d3d12 Driver in Debug Builds (#15567)

This commit is contained in:
GABO1423 2023-08-09 04:37:20 -04:00 committed by GitHub
parent 09e471931d
commit 0a510d7055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

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