mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Merge pull request #1649 from vlj/rsx
rsx/common: Remove extra "-2" in get_exact_mipmap_count non compresse…
This commit is contained in:
commit
b46fc2fc49
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue