|
@@ -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];
|
|
|
|