Skip to content

Commit 6e9b83f

Browse files
authored
Merge pull request #1910 from grumpycoders/cube-fix
Fixing crash in cube example.
2 parents fddfff5 + ff295f5 commit 6e9b83f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mips/psyqo/examples/cube/cube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void CubeScene::frame() {
151151
psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform);
152152

153153
// Generate a Z-axis rotation matrix (Empty, but it's here for your use)
154-
psyqo::SoftMath::generateRotationMatrix33(0, 0, psyqo::SoftMath::Axis::Z, cube.m_trig);
154+
psyqo::SoftMath::generateRotationMatrix33(&rot, 0, psyqo::SoftMath::Axis::Z, cube.m_trig);
155155

156156
// Apply the combined rotation and write it to the pseudo register for the cube's rotation
157157
psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform);

0 commit comments

Comments
 (0)