From 0d23455c7f29b662e3767159e7c8373a74b68ee7 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Sun, 23 Jun 2024 21:02:36 +0300 Subject: [PATCH] gx: use correct constant name for PASSCLR operation (#176) In the alpha input we should use only GX_CA_* registers. Both GX_CC_A2 and GX_CA_ZERO evaluate to 7, so this is just a cosmetic issue. The existing error is probably the result of a misunderstanding during reverse engineering. --- libogc/gx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libogc/gx.c b/libogc/gx.c index 47c624f7..5fb016f9 100644 --- a/libogc/gx.c +++ b/libogc/gx.c @@ -3858,7 +3858,7 @@ void GX_SetTevOp(u8 tevstage,u8 mode) break; case GX_PASSCLR: GX_SetTevColorIn(tevstage,GX_CC_ZERO,GX_CC_ZERO,GX_CC_ZERO,defcolor); - GX_SetTevAlphaIn(tevstage,GX_CC_A2,GX_CC_A2,GX_CC_A2,defalpha); + GX_SetTevAlphaIn(tevstage,GX_CA_ZERO,GX_CA_ZERO,GX_CA_ZERO,defalpha); break; } GX_SetTevColorOp(tevstage,GX_TEV_ADD,GX_TB_ZERO,GX_CS_SCALE_1,GX_TRUE,GX_TEVPREV);