Skip to content

Commit

Permalink
BC5U support properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Jun 19, 2023
1 parent b980dce commit da2af60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Advocate/DDS/Manager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,13 @@ public void GenerateMissingMips(string texconvPath)
}
else
{
format = lastHeader.FourCC;

// fix some format aliases that texcov does not support
format = format switch
format = lastHeader.FourCC switch
{
"BC4U" => "BC4_UNORM",
"BC5U" => "BC5_UNORM",
"ATI2" => "BC5_UNORM",
_ => format
_ => lastHeader.FourCC
};
}

Expand Down

0 comments on commit da2af60

Please sign in to comment.