fallback to transparent black for custom sampler border color

This commit is contained in:
Samuliak 2025-01-04 11:24:00 +01:00
parent 55d9436bf3
commit 40dab1e212
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

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