Fix corruption of Ridge Racer speedometers with AutoMaxQuality enabled.

See #8509
This commit is contained in:
Henrik Rydgård 2022-09-22 15:27:17 +02:00
parent c3cbb68452
commit 078fa9beb2

View file

@ -2698,7 +2698,7 @@ bool TextureCacheCommon::PrepareBuildTexture(BuildTexturePlan &plan, TexCacheEnt
plan.levelsToLoad = 1;
}
if (plan.isVideo || plan.depth != 1) {
if (plan.isVideo || plan.depth != 1 || plan.decodeToClut8) {
plan.maxPossibleLevels = 1;
} else {
plan.maxPossibleLevels = log2i(std::min(plan.createW, plan.createH)) + 1;