From 12563dcbf6e7f002e1c538dd47eb79e9bea9db5e Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Tue, 18 Mar 2025 19:49:58 -0700 Subject: [PATCH 1/2] Fixing crash in cube example. --- src/mips/psyqo/examples/cube/cube.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mips/psyqo/examples/cube/cube.cpp b/src/mips/psyqo/examples/cube/cube.cpp index 93237b027..603d0f725 100644 --- a/src/mips/psyqo/examples/cube/cube.cpp +++ b/src/mips/psyqo/examples/cube/cube.cpp @@ -151,7 +151,7 @@ void CubeScene::frame() { psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform); // Generate a Z-axis rotation matrix (Empty, but it's here for your use) - psyqo::SoftMath::generateRotationMatrix33(0, 0, psyqo::SoftMath::Axis::Z, cube.m_trig); + psyqo::SoftMath::generateRotationMatrix33(rot, 0, psyqo::SoftMath::Axis::Z, cube.m_trig); // Apply the combined rotation and write it to the pseudo register for the cube's rotation psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform); From ff295f59dcb66adf28e95775c683a65f8bf37fd0 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 14 Apr 2025 21:22:07 -0700 Subject: [PATCH 2/2] Actual proper fix. --- src/mips/psyqo/examples/cube/cube.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mips/psyqo/examples/cube/cube.cpp b/src/mips/psyqo/examples/cube/cube.cpp index 603d0f725..27ac4ce63 100644 --- a/src/mips/psyqo/examples/cube/cube.cpp +++ b/src/mips/psyqo/examples/cube/cube.cpp @@ -151,7 +151,7 @@ void CubeScene::frame() { psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform); // Generate a Z-axis rotation matrix (Empty, but it's here for your use) - psyqo::SoftMath::generateRotationMatrix33(rot, 0, psyqo::SoftMath::Axis::Z, cube.m_trig); + psyqo::SoftMath::generateRotationMatrix33(&rot, 0, psyqo::SoftMath::Axis::Z, cube.m_trig); // Apply the combined rotation and write it to the pseudo register for the cube's rotation psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform);