Skip to content

Commit

Permalink
nv2a: Limit base, max mipmap level
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed May 24, 2022
1 parent 0efef88 commit 14748d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/xbox/nv2a/pgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14748d9

Please sign in to comment.