GE Debugger: Fix bias display for auto mip mode.
This commit is contained in:
parent
996c97dfd5
commit
262c3483cf
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue