Skip to content

Commit

Permalink
Update gte-registers.hh
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
mina-skunk committed Sep 14, 2024
1 parent a0f265a commit 4dbc0fe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/mips/psyqo/gte-registers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -834,16 +834,16 @@ inline void writeSafe<PseudoRegister::V2>(const Vec3& in) {

template <>
inline void writeSafe<PseudoRegister::Translation>(const Vec3& in) {
writeUnsafe<Register::TRX>(in.x.raw());
writeUnsafe<Register::TRY>(in.y.raw());
writeSafe<Register::TRZ>(in.z.raw());
writeUnsafe<Register::TRX>(Short(in.x));
writeUnsafe<Register::TRY>(Short(in.y));
writeSafe<Register::TRZ>(Short(in.z));
}


template <>
inline void writeSafe<PseudoRegister::ScreenOffset>(const Vec2& in) {
writeUnsafe<Register::OFX>(in.x.raw());
writeSafe<Register::OFY>(in.y.raw());
writeUnsafe<Register::OFX>(Short(in.x));
writeSafe<Register::OFY>(Short(in.y));
}

template <>
Expand Down Expand Up @@ -893,15 +893,15 @@ inline void writeUnsafe<PseudoRegister::V2>(const Vec3& in) {

template <>
inline void writeUnsafe<PseudoRegister::Translation>(const Vec3& in) {
writeUnsafe<Register::TRX>(in.x.raw());
writeUnsafe<Register::TRY>(in.y.raw());
writeUnsafe<Register::TRZ>(in.z.raw());
writeUnsafe<Register::TRX>(Short(in.x));
writeUnsafe<Register::TRY>(Short(in.y));
writeUnsafe<Register::TRZ>(Short(in.z));
}

template <>
inline void writeUnsafe<PseudoRegister::ScreenOffset>(const Vec2& in) {
writeUnsafe<Register::OFX>(in.x.raw());
writeUnsafe<Register::OFY>(in.y.raw());
writeUnsafe<Register::OFX>(Short(in.x));
writeUnsafe<Register::OFY>(Short(in.y));
}

template <>
Expand Down

0 comments on commit 4dbc0fe

Please sign in to comment.