@@ -6593,9 +6593,7 @@ static void D3D12_INTERNAL_DestroySwapchain(
6593
6593
{
6594
6594
renderer -> commandQueue -> PresentX (0 , NULL , NULL );
6595
6595
for (Uint32 i = 0 ; i < windowData -> swapchainTextureCount ; i += 1 ) {
6596
- D3D12_INTERNAL_DestroyTexture (
6597
- renderer ,
6598
- windowData -> textureContainers [i ].activeTexture );
6596
+ D3D12_INTERNAL_DestroyTexture (windowData -> textureContainers [i ].activeTexture );
6599
6597
}
6600
6598
}
6601
6599
@@ -6611,9 +6609,7 @@ static bool D3D12_INTERNAL_ResizeSwapchain(
6611
6609
6612
6610
// Clean up the previous swapchain textures
6613
6611
for (Uint32 i = 0 ; i < windowData -> swapchainTextureCount ; i += 1 ) {
6614
- D3D12_INTERNAL_DestroyTexture (
6615
- renderer ,
6616
- windowData -> textureContainers [i ].activeTexture );
6612
+ D3D12_INTERNAL_DestroyTexture (windowData -> textureContainers [i ].activeTexture );
6617
6613
}
6618
6614
6619
6615
// Create a new swapchain
@@ -8673,6 +8669,7 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
8673
8669
8674
8670
renderer = (D3D12Renderer * )SDL_calloc (1 , sizeof (D3D12Renderer ));
8675
8671
8672
+ bool hasDxgiDebug = false;
8676
8673
#if !(defined(SDL_PLATFORM_XBOXONE ) || defined(SDL_PLATFORM_XBOXSERIES ))
8677
8674
// Load the DXGI library
8678
8675
renderer -> dxgi_dll = SDL_LoadObject (DXGI_DLL );
@@ -8683,12 +8680,11 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
8683
8680
8684
8681
#ifdef HAVE_IDXGIINFOQUEUE
8685
8682
// Initialize the DXGI debug layer, if applicable
8686
- bool hasDxgiDebug = false;
8687
8683
if (debugMode ) {
8688
8684
hasDxgiDebug = D3D12_INTERNAL_TryInitializeDXGIDebug (renderer );
8689
8685
}
8690
8686
#else
8691
- bool hasDxgiDebug = true;
8687
+ hasDxgiDebug = true;
8692
8688
#endif
8693
8689
8694
8690
// Load the CreateDXGIFactory1 function
0 commit comments