Optimization work

This commit is contained in:
Justin Marshall
2026-05-04 18:40:22 -07:00
parent 8ab3b0be16
commit 9e8bf6012c
2 changed files with 93 additions and 53 deletions
+2
View File
@@ -6161,6 +6161,8 @@ static UINT QD3D12_CalcMipCount(int width, int height)
w = std::max<UINT>(1u, w >> 1);
h = std::max<UINT>(1u, h >> 1);
++levels;
if (levels > 2)
break;
}
return levels;
}