mirror of https://github.com/PCSX2/pcsx2.git
GS:MTL: Fix inverted UseMipmapFiltering check
This commit is contained in:
parent
521038984a
commit
525a7c48e9
|
@ -814,9 +814,11 @@ static MRCOwned<id<MTLSamplerState>> CreateSampler(id<MTLDevice> dev, GSHWDrawCo
|
|||
[sdesc setRAddressMode:MTLSamplerAddressModeClampToEdge];
|
||||
|
||||
[sdesc setMaxAnisotropy:GSConfig.MaxAnisotropy && sel.aniso ? GSConfig.MaxAnisotropy : 1];
|
||||
[sdesc setLodMaxClamp:(sel.lodclamp || sel.UseMipmapFiltering()) ? 0.25f : FLT_MAX];
|
||||
bool clampLOD = sel.lodclamp || !sel.UseMipmapFiltering();
|
||||
const char* clampdesc = clampLOD ? " LODClamp" : "";
|
||||
[sdesc setLodMaxClamp:clampLOD ? 0.25f : FLT_MAX];
|
||||
|
||||
[sdesc setLabel:[NSString stringWithFormat:@"%s%s %s%s", taudesc, tavdesc, magname, minname]];
|
||||
[sdesc setLabel:[NSString stringWithFormat:@"%s%s %s%s%s", taudesc, tavdesc, magname, minname, clampdesc]];
|
||||
MRCOwned<id<MTLSamplerState>> ret = MRCTransfer([dev newSamplerStateWithDescriptor:sdesc]);
|
||||
pxAssertRel(ret, "Failed to create sampler!");
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue