From 5a3cf5d9acb045f17e6bc298da45ad13bfdb59fe Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Thu, 31 Mar 2016 18:14:58 +0200 Subject: [PATCH] rsx/common: Remove extra "-2" in get_exact_mipmap_count non compressed format. --- rpcs3/Emu/RSX/RSXTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/RSXTexture.cpp b/rpcs3/Emu/RSX/RSXTexture.cpp index 044631a44d..a8477b10cd 100644 --- a/rpcs3/Emu/RSX/RSXTexture.cpp +++ b/rpcs3/Emu/RSX/RSXTexture.cpp @@ -104,7 +104,7 @@ namespace rsx u16 max_mipmap_count = static_cast(floor(log2(std::min(width() / 4, height() / 4))) + 1); return std::min(mipmap(), max_mipmap_count); } - u16 max_mipmap_count = static_cast(floor(log2(std::max(width(), height()))) + 1) - 2; + u16 max_mipmap_count = static_cast(floor(log2(std::max(width(), height()))) + 1); return std::min(mipmap(), max_mipmap_count); }