Skip to content

Commit

Permalink
D3D12: Fix uninitialized swapchainDesc value
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Aug 13, 2024
1 parent 562c271 commit 5f3e03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpu/d3d12/SDL_gpu_d3d12.c
Original file line number Diff line number Diff line change
Expand Up @@ -5954,6 +5954,7 @@ static SDL_bool D3D12_INTERNAL_CreateSwapchain(
swapchainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD;
swapchainDesc.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED;
swapchainDesc.Flags = 0;
swapchainDesc.Stereo = 0;

// Initialize the fullscreen descriptor (if needed)
fullscreenDesc.RefreshRate.Numerator = 0;
Expand Down

0 comments on commit 5f3e03b

Please sign in to comment.