diff options
author | Nguyen Dac Nam <nam.kazt.91@gmail.com> | 2020-02-18 19:24:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 19:24:32 +0100 |
commit | ec206f7f953d9437bfd5e391286e1507c4eccb1f (patch) | |
tree | bf4152ea3f25dcc4dfda50b90e9f3d5cda933af7 /src/video_core | |
parent | Update code structure (diff) | |
download | yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.tar yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.tar.gz yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.tar.bz2 yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.tar.lz yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.tar.xz yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.tar.zst yuzu-ec206f7f953d9437bfd5e391286e1507c4eccb1f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_sampler_cache.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/video_core/renderer_vulkan/vk_sampler_cache.cpp b/src/video_core/renderer_vulkan/vk_sampler_cache.cpp index cbad25015..204b7c39c 100644 --- a/src/video_core/renderer_vulkan/vk_sampler_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_sampler_cache.cpp @@ -31,15 +31,6 @@ static std::optional<vk::BorderColor> TryConvertBorderColor(std::array<float, 4> return vk::BorderColor::eFloatOpaqueBlack; } return vk::BorderColor::eFloatTransparentBlack; - // If color elements are brighter than roughly 0.5 average, use white border - return vk::BorderColor::eFloatOpaqueWhite; - } else { - if (color[3] > 0.5f) { - return vk::BorderColor::eFloatOpaqueBlack; - } else { - return vk::BorderColor::eFloatTransparentBlack; - } - } } } |