nv2a: Limit base, max mipmap level

This commit is contained in:
Matt Borgerson 2022-05-23 21:59:54 -07:00 committed by mborgerson
parent 0efef88181
commit 14748d9bbb
1 changed files with 2 additions and 0 deletions

View File

@ -6320,6 +6320,8 @@ static void pgraph_bind_textures(NV2AState *d)
}
}
assert(levels > 0);
min_mipmap_level = MIN(levels-1, min_mipmap_level);
max_mipmap_level = MIN(levels-1, max_mipmap_level);
}
size_t length = 0;