From 99b4e7c54c4de1eda7f0a8ab392e39bbaf797920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 1 Aug 2022 00:16:57 +0200 Subject: [PATCH] Vulkan: Don't try to auto-mipmap 3D textures in max quality filter mode --- GPU/Vulkan/TextureCacheVulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Vulkan/TextureCacheVulkan.cpp b/GPU/Vulkan/TextureCacheVulkan.cpp index 6b31a5a9e0..a4f5c4709b 100644 --- a/GPU/Vulkan/TextureCacheVulkan.cpp +++ b/GPU/Vulkan/TextureCacheVulkan.cpp @@ -589,7 +589,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) { } int maxPossibleMipLevels; - if (plan.isVideo) { + if (plan.isVideo || plan.depth != 1) { maxPossibleMipLevels = 1; } else { maxPossibleMipLevels = log2i(std::min(plan.w * plan.scaleFactor, plan.h * plan.scaleFactor)) + 1;