Skip to content

Commit cc0b7fb

Browse files
committed
passing 100% of tests
1 parent ea89da6 commit cc0b7fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/ctr/gte.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ typedef enum GTE_MAC
4848
#define _gte_loadVec_GTE_VECTOR_0(v) gte_ldv0(v)
4949
#define _gte_loadVec_GTE_VECTOR_1(v) gte_ldv1(v)
5050
#define _gte_loadVec_GTE_VECTOR_2(v) gte_ldv2(v)
51-
#define _gte_loadVec_GTE_VECTOR_IR(v) gte_ldsv(v)
51+
#define _gte_loadVec_GTE_VECTOR_IR(v) gte_ldlvl(v)
5252
#define _gte_readMac_GTE_MAC_0(out) gte_stopz(out)
5353
#define _gte_readMac_GTE_MAC_1(out) gte_stlvnl0(out)
5454
#define _gte_readMac_GTE_MAC_2(out) gte_stlvnl1(out)

rewrite/src/math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void MATH_GetInverseMatrixTransformation(Matrix* out, const Matrix* matrix)
7070
for (u32 j = 0; j < 3; j++) { out->m[i][j] = matrix->m[j][i]; }
7171
}
7272
const SVec3 t = { .x = (-matrix->t.x) & 0xFFFF, .y = (-matrix->t.y) & 0xFFFF, .z = (-matrix->t.z) & 0xFFFF };
73-
gte_SetRotMatrix(matrix->m);
73+
gte_SetRotMatrix(out->m);
7474
gte_loadVec(&t, GTE_VECTOR_0);
7575
gte_mulMatrixVec(out->t.v, GTE_MATRIX_ROT, GTE_VECTOR_0);
7676
TEST_MATH_GetInverseMatrixTransformation(matrix, out);

0 commit comments

Comments
 (0)