mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan: Correct the calculation for max possible mip levels
This commit is contained in:
parent
d98cdacf54
commit
05d8752a64
1 changed files with 1 additions and 1 deletions
|
@ -2921,7 +2921,7 @@ bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan &plan, TexCacheEnt
|
|||
plan.levelsToLoad = 1;
|
||||
plan.maxPossibleLevels = 1;
|
||||
} else {
|
||||
plan.maxPossibleLevels = log2i(std::min(plan.createW, plan.createH)) + 1;
|
||||
plan.maxPossibleLevels = log2i(std::max(plan.createW, plan.createH)) + 1;
|
||||
}
|
||||
|
||||
if (plan.levelsToCreate == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue