2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

shader tag update

This commit is contained in:
Jack Andersen
2016-04-01 17:34:41 -10:00
parent 58c85d8c30
commit 4ab2312d06
3 changed files with 3 additions and 5 deletions

View File

@@ -675,14 +675,12 @@ bool TXTR::CookPC(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outP
mipmap = false;
/* Compute mipmap levels */
size_t numMips = 0;
size_t numMips = 1;
if (mipmap && CountBits(width) == 1 && CountBits(height) == 1)
{
size_t index = std::min(width, height);
while (index >>= 1) ++numMips;
}
else
numMips = 1;
if (bitDepth != 8)
{