Vulkan: Don't try to auto-mipmap 3D textures in max quality filter mode

This commit is contained in:
Henrik Rydgård committed 2022-08-01 00:16:57 +02:00
1 parent c158414858
commit 99b4e7c54c
1 file changed
+1 -1
+1 -1
View File
@@ -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;