(UWP) Fix d3d12 Driver in Debug Builds (#15567)
This commit is contained in:
parent
09e471931d
commit
0a510d7055
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue