From ec206f7f953d9437bfd5e391286e1507c4eccb1f Mon Sep 17 00:00:00 2001 From: Nguyen Dac Nam Date: Wed, 19 Feb 2020 01:24:32 +0700 Subject: [PATCH] fixups mistake auto commit. --- src/video_core/renderer_vulkan/vk_sampler_cache.cpp | 9 --------- 1 file changed, 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 TryConvertBorderColor(std::array 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; - } - } } }