metal: fix depth texture compare mode setting.

This commit is contained in:
Sasha Szpakowski
2024-07-11 21:42:52 -03:00
parent 6acdd5f01f
commit b99fce2425
+1 -1
View File
@@ -850,7 +850,7 @@ id<MTLSamplerState> Graphics::getCachedSampler(const SamplerState &s)
// This isn't supported on some older iOS devices. Texture code checks for support.
if (s.depthSampleMode.hasValue)
desc.compareFunction = getMTLCompareFunction(s.depthSampleMode.value);
desc.compareFunction = getMTLCompareFunction(getReversedCompareMode(s.depthSampleMode.value));
id<MTLSamplerState> sampler = [device newSamplerStateWithDescriptor:desc];