mirror of https://github.com/cemu-project/Cemu.git
fallback to transparent black for custom sampler border color
This commit is contained in:
parent
55d9436bf3
commit
40dab1e212
|
@ -110,7 +110,8 @@ MTL::SamplerState* MetalSamplerCache::GetSamplerState(const LatteContextRegister
|
|||
else
|
||||
{
|
||||
// Metal doesn't support custom border color
|
||||
samplerDescriptor->setBorderColor(MTL::SamplerBorderColorOpaqueBlack);
|
||||
cemuLog_logOnce(LogType::Force, "Custom border color is not supported in Metal, using transparent black instead");
|
||||
samplerDescriptor->setBorderColor(MTL::SamplerBorderColorTransparentBlack);
|
||||
}
|
||||
|
||||
samplerState = m_mtlr->GetDevice()->newSamplerState(samplerDescriptor);
|
||||
|
|
Loading…
Reference in New Issue