mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
metal: fix depth texture compare mode setting.
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user