diff --git a/GPU/Vulkan/TextureCacheVulkan.cpp b/GPU/Vulkan/TextureCacheVulkan.cpp index 58d20e970e..a53ef9618f 100644 --- a/GPU/Vulkan/TextureCacheVulkan.cpp +++ b/GPU/Vulkan/TextureCacheVulkan.cpp @@ -133,7 +133,12 @@ VkSampler SamplerCache::GetOrCreateSampler(const SamplerCacheKey &key) { samp.maxAnisotropy = 1.0f; samp.anisotropyEnable = false; } - samp.maxLod = (float)(int32_t)key.maxLevel * (1.0f / 256.0f); + if (key.maxLevel == 9 * 256) { + // No max level needed. + samp.maxLod = VK_LOD_CLAMP_NONE; + } else { + samp.maxLod = (float)(int32_t)key.maxLevel * (1.0f / 256.0f); + } samp.minLod = (float)(int32_t)key.minLevel * (1.0f / 256.0f); samp.mipLodBias = (float)(int32_t)key.lodBias * (1.0f / 256.0f);