diff options
| author | Justin Moore <DrChat@users.noreply.github.com> | 2017-07-21 11:51:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-21 11:51:24 -0500 |
| commit | 299e0f7e489f6b4483163d4228dd1122621d9b3d (patch) | |
| tree | e12e357b37a755f97ebbfc2a0c6d94d669f96f0a | |
| parent | 1d56b32a9770c7066435bf053e9254e4cb9ff7e3 (diff) | |
| parent | 7ad6fc92f6bcf55f643597ff58e5a9ef8eef4690 (diff) | |
Merge pull request #758 from AllanCat/master-pr
Fixed white edge on some textures(text display).
| -rw-r--r-- | src/xenia/gpu/vulkan/texture_cache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc index 3849839f2..1e3c6f66c 100644 --- a/src/xenia/gpu/vulkan/texture_cache.cc +++ b/src/xenia/gpu/vulkan/texture_cache.cc @@ -264,7 +264,7 @@ void TextureCache::SetupEmptySet() { sampler_info.compareOp = VK_COMPARE_OP_NEVER; sampler_info.minLod = 0.f; sampler_info.maxLod = 0.f; - sampler_info.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK; + sampler_info.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK; sampler_info.unnormalizedCoordinates = VK_FALSE; err = vkCreateSampler(*device_, &sampler_info, nullptr, &empty_sampler_); CheckResult(err, "vkCreateSampler"); @@ -797,7 +797,7 @@ TextureCache::Sampler* TextureCache::Demand(const SamplerInfo& sampler_info) { sampler_create_info.compareOp = VK_COMPARE_OP_NEVER; sampler_create_info.minLod = 0.0f; sampler_create_info.maxLod = 0.0f; - sampler_create_info.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK; + sampler_create_info.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK; sampler_create_info.unnormalizedCoordinates = VK_FALSE; VkSampler vk_sampler; status = |
