nv2a: Discard unknown blend equation

This commit is contained in:
Matt Borgerson 2021-10-13 15:21:09 -07:00 committed by mborgerson
parent e5ab2476a9
commit 5622af4981
1 changed files with 2 additions and 2 deletions

View File

@ -1560,8 +1560,8 @@ DEF_METHOD(NV097, SET_BLEND_EQUATION)
case NV097_SET_BLEND_EQUATION_V_FUNC_ADD_SIGNED:
equation = 6; break;
default:
assert(false);
break;
NV2A_DPRINTF("Unknown blend equation: 0x%08x\n", parameter);
return; /* discard */
}
SET_MASK(pg->regs[NV_PGRAPH_BLEND], NV_PGRAPH_BLEND_EQN, equation);
}