mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-08 20:58:41 +00:00
sampler: Fix custom border color fallback condition. (#3489)
This commit is contained in:
@@ -19,7 +19,8 @@ Sampler::Sampler(const Vulkan::Instance& instance, const AmdGpu::Sampler& sample
|
||||
anisotropy_enable ? std::clamp(sampler.MaxAniso(), 1.0f, instance.MaxSamplerAnisotropy())
|
||||
: 1.0f;
|
||||
auto border_color = LiverpoolToVK::BorderColor(sampler.border_color_type);
|
||||
if (!instance.IsCustomBorderColorSupported()) {
|
||||
if (border_color == vk::BorderColor::eFloatCustomEXT &&
|
||||
!instance.IsCustomBorderColorSupported()) {
|
||||
LOG_WARNING(Render_Vulkan, "Custom border color is not supported, falling back to black");
|
||||
border_color = vk::BorderColor::eFloatOpaqueBlack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user