diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-06-25 20:15:24 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-06-25 20:15:24 -0400 |
| commit | ca4ecc5a41f34f07ccd0580a2a923e39a8ae20cb (patch) | |
| tree | 2d1d4713b1a5496b72f8854ac5e79573ee4d5b94 /src/JSystem/J3DGraphBase/J3DGD.cpp | |
| parent | 93a883fabffc23dcac75405bfb8f3df8042f9878 (diff) | |
Minor J3D/GX doc
Diffstat (limited to 'src/JSystem/J3DGraphBase/J3DGD.cpp')
| -rw-r--r-- | src/JSystem/J3DGraphBase/J3DGD.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DGD.cpp b/src/JSystem/J3DGraphBase/J3DGD.cpp index 5fc3ae45..95d501a8 100644 --- a/src/JSystem/J3DGraphBase/J3DGD.cpp +++ b/src/JSystem/J3DGraphBase/J3DGD.cpp @@ -407,8 +407,8 @@ void J3DGDSetIndTexOrder(u32 num, GXTexCoordID tc0, GXTexMapID tm0, GXTexCoordID void J3DGDSetTevOrder(GXTevStageID stage, GXTexCoordID coord1, GXTexMapID map1, GXChannelID color1, GXTexCoordID coord2, GXTexMapID map2, GXChannelID color2) { static u8 c2r[] = {0, 1, 0, 1, 0, 1, 7, 5, 6, 0, 0, 0, 0, 0, 0, 7}; - GXTexCoordID r31 = coord1 >= 8 ? GX_TEXCOORD0 : coord1; - GXTexCoordID r30 = coord2 >= 8 ? GX_TEXCOORD0 : coord2; + GXTexCoordID r31 = coord1 >= GX_MAXCOORD ? GX_TEXCOORD0 : coord1; + GXTexCoordID r30 = coord2 >= GX_MAXCOORD ? GX_TEXCOORD0 : coord2; GDOverflowCheck(5); J3DGDWriteBPCmd( ((map1 & 7) << 0) | |
