1
0
Fork 1
forked from suyu/suyu

fixups mistake auto commit.

This commit is contained in:
Nguyen Dac Nam 2020-02-19 01:24:32 +07:00 committed by GitHub
parent eaf60ca5d8
commit ec206f7f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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