Skip to content

Commit

Permalink
(UWP) Fix d3d12 Driver in Debug Builds (#15567)
Browse files Browse the repository at this point in the history
  • Loading branch information
GABO1423 authored Aug 9, 2023
1 parent 09e4719 commit 0a510d7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gfx/drivers/d3d12.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a510d7

Please sign in to comment.