mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 19:13:49 +01:00
rsx/common: Remove extra "-2" in get_exact_mipmap_count non compressed format.
This commit is contained in:
1 parent
7542d38681
commit
5a3cf5d9ac
1 file changed
+1
-1
@@ -104,7 +104,7 @@ namespace rsx
|
||||
u16 max_mipmap_count = static_cast<u16>(floor(log2(std::min(width() / 4, height() / 4))) + 1);
|
||||
return std::min(mipmap(), max_mipmap_count);
|
||||
}
|
||||
u16 max_mipmap_count = static_cast<u16>(floor(log2(std::max(width(), height()))) + 1) - 2;
|
||||
u16 max_mipmap_count = static_cast<u16>(floor(log2(std::max(width(), height()))) + 1);
|
||||
return std::min(mipmap(), max_mipmap_count);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user