Skip to content

Commit

Permalink
D3D12: Uninitialized memory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo authored and thatcosmonaut committed Aug 5, 2024
1 parent 32b5959 commit d58656c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gpu/d3d12/SDL_gpu_d3d12.c
Original file line number Diff line number Diff line change
Expand Up @@ -5832,6 +5832,8 @@ static void D3D12_INTERNAL_InitBlitPipelines(
samplerCreateInfo.mipLodBias = 0.0f;
samplerCreateInfo.minLod = 0;
samplerCreateInfo.maxLod = 1000;
samplerCreateInfo.maxAnisotropy = 1.0f;
samplerCreateInfo.compareOp = SDL_GPU_COMPAREOP_ALWAYS;

renderer->blitNearestSampler = D3D12_CreateSampler(
(SDL_GpuRenderer *)renderer,
Expand Down

0 comments on commit d58656c

Please sign in to comment.