Skip to content

Commit 0d23455

Browse files
authored
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.
1 parent 4719126 commit 0d23455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libogc/gx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3858,7 +3858,7 @@ void GX_SetTevOp(u8 tevstage,u8 mode)
38583858
break;
38593859
case GX_PASSCLR:
38603860
GX_SetTevColorIn(tevstage,GX_CC_ZERO,GX_CC_ZERO,GX_CC_ZERO,defcolor);
3861-
GX_SetTevAlphaIn(tevstage,GX_CC_A2,GX_CC_A2,GX_CC_A2,defalpha);
3861+
GX_SetTevAlphaIn(tevstage,GX_CA_ZERO,GX_CA_ZERO,GX_CA_ZERO,defalpha);
38623862
break;
38633863
}
38643864
GX_SetTevColorOp(tevstage,GX_TEV_ADD,GX_TB_ZERO,GX_CS_SCALE_1,GX_TRUE,GX_TEVPREV);

0 commit comments

Comments
 (0)