GPU: Fix validation warning in D3D12 blit code

This commit is contained in:
Lucas Murray
2024-12-01 16:58:24 +11:00
committed by Sam Lantinga
parent 45869d6177
commit efb59bd0bf

View File

@@ -7940,7 +7940,7 @@ static void D3D12_INTERNAL_InitBlitResources(
samplerCreateInfo.min_lod = 0; samplerCreateInfo.min_lod = 0;
samplerCreateInfo.max_lod = 1000; samplerCreateInfo.max_lod = 1000;
samplerCreateInfo.max_anisotropy = 1.0f; samplerCreateInfo.max_anisotropy = 1.0f;
samplerCreateInfo.compare_op = SDL_GPU_COMPAREOP_ALWAYS; samplerCreateInfo.compare_op = SDL_GPU_COMPAREOP_NEVER;
renderer->blitNearestSampler = D3D12_CreateSampler( renderer->blitNearestSampler = D3D12_CreateSampler(
(SDL_GPURenderer *)renderer, (SDL_GPURenderer *)renderer,