feat(gx): remove placeholder max tex size field from gx caps

This commit is contained in:
fallenoak 2023-03-09 21:54:41 -06:00
parent 5d49ab72c4
commit 27583b6f2e
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 1 additions and 5 deletions

View file

@ -508,10 +508,9 @@ uint32_t MippedImgCalcSize(uint32_t fourCC, uint32_t width, uint32_t height) {
// - order: width, height or height, width?
void RequestImageDimensions(uint32_t* width, uint32_t* height, uint32_t* bestMip) {
CGxCaps systemCaps;
memcpy(&systemCaps, GxCaps(), sizeof(systemCaps));
uint32_t maxTextureSize = systemCaps.m_maxTextureSize;
auto maxTextureSize = systemCaps.m_texMaxSize[GxTex_2d];
if (maxTextureSize) {
while (*height > maxTextureSize || *width > maxTextureSize) {