mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-21 18:58:13 +00:00
GPU: Fix validation warning in D3D12 blit code
This commit is contained in:

committed by
Sam Lantinga

parent
45869d6177
commit
efb59bd0bf
@@ -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,
|
||||||
|
Reference in New Issue
Block a user