From cdaaabb97889cd68498f038bcae7e0b204d2dbcb Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Tue, 15 Oct 2024 10:46:04 -0400 Subject: [PATCH] GPU: Fix Metal sampler address mode order --- src/gpu/metal/SDL_gpu_metal.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu/metal/SDL_gpu_metal.m b/src/gpu/metal/SDL_gpu_metal.m index d60d69d4ba5b1..c8230aeeb888a 100644 --- a/src/gpu/metal/SDL_gpu_metal.m +++ b/src/gpu/metal/SDL_gpu_metal.m @@ -1331,9 +1331,9 @@ static void METAL_PopDebugGroup( id sampler; MetalSampler *metalSampler; - samplerDesc.rAddressMode = SDLToMetal_SamplerAddressMode[createinfo->address_mode_u]; - samplerDesc.sAddressMode = SDLToMetal_SamplerAddressMode[createinfo->address_mode_v]; - samplerDesc.tAddressMode = SDLToMetal_SamplerAddressMode[createinfo->address_mode_w]; + samplerDesc.sAddressMode = SDLToMetal_SamplerAddressMode[createinfo->address_mode_u]; + samplerDesc.tAddressMode = SDLToMetal_SamplerAddressMode[createinfo->address_mode_v]; + samplerDesc.rAddressMode = SDLToMetal_SamplerAddressMode[createinfo->address_mode_w]; samplerDesc.minFilter = SDLToMetal_MinMagFilter[createinfo->min_filter]; samplerDesc.magFilter = SDLToMetal_MinMagFilter[createinfo->mag_filter]; samplerDesc.mipFilter = SDLToMetal_MipFilter[createinfo->mipmap_mode]; // FIXME: Is this right with non-mipmapped samplers?