Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
IngmarBitter committed May 25, 2020
1 parent 8d53c10 commit d75b56e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions samples/DirectX/DWrite/HelloWrite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ private HRESULT CreateDeviceIndependentResources()
IDWriteFactory* writeFactory = null;
IDWriteTextFormat* writeTextFormat = null;

var dxgiFactoryFlags = 0u;
#if DEBUG
// Enable the debug layer (requires the Graphics Tools "optional feature").
// NOTE: Enabling the debug layer after device creation will invalidate the active device.
Expand All @@ -89,9 +88,6 @@ private HRESULT CreateDeviceIndependentResources()
if (SUCCEEDED(D3D12GetDebugInterface(&iid, (void**)&debugController)))
{
debugController->EnableDebugLayer();

// Enable additional debug layers.
dxgiFactoryFlags |= DXGI_CREATE_FACTORY_DEBUG;
}
}
#endif
Expand Down

0 comments on commit d75b56e

Please sign in to comment.