GE Debugger: Fix bias display for auto mip mode.

This commit is contained in:
Unknown W. Brackets 2017-05-13 17:58:51 -07:00
parent 996c97dfd5
commit 262c3483cf

View file

@ -657,7 +657,7 @@ void FormatStateRow(wchar_t *dest, const TabStateRow &info, u32 value, bool enab
case CMD_FMT_TEXLEVEL:
{
const char *mipLevelModes[] = {
"auto",
"auto + bias",
"bias",
"slope + bias",
};
@ -665,9 +665,7 @@ void FormatStateRow(wchar_t *dest, const TabStateRow &info, u32 value, bool enab
const int biasFixed = (s8)(value >> 16);
const float bias = (float)biasFixed / 16.0f;
if (mipLevel == 0 && bias == 0) {
swprintf(dest, L"%S", mipLevelModes[mipLevel]);
} else if (mipLevel == 1 || mipLevel == 2) {
if (mipLevel == 0 || mipLevel == 1 || mipLevel == 2) {
swprintf(dest, L"%S: %f", mipLevelModes[mipLevel], bias);
} else {
swprintf(dest, L"%06x", value);