From 5622af49811cdde72e45b01ef80c5a76de3ee390 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Wed, 13 Oct 2021 15:21:09 -0700 Subject: [PATCH] nv2a: Discard unknown blend equation --- hw/xbox/nv2a/pgraph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xbox/nv2a/pgraph.c b/hw/xbox/nv2a/pgraph.c index cbca09163f..821b2a8695 100644 --- a/hw/xbox/nv2a/pgraph.c +++ b/hw/xbox/nv2a/pgraph.c @@ -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); }