summaryrefslogtreecommitdiff
path: root/libpcsxcore/gte.c
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-05-02 15:01:27 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-05-02 15:01:27 +0100
commit216c2ff3aefc9e0295ed9b1486935d65f6c13f55 (patch)
tree88791c94e67ac8a5b99b9b39238ca4513077adf6 /libpcsxcore/gte.c
parent153c8eb4997d21d3b2965cf38d4348f05c29860f (diff)
downloadpcsxr-216c2ff3aefc9e0295ed9b1486935d65f6c13f55.tar.gz
Fix bugs from previous
Fix stray triangles - Switch to full floating point RTPS/RTPT - Clamp w values to near plane Fix texture corruption in 1.78, copy 2.4 Tweak - Remove matrix replacement - Add W component to vertices - Wrap glVertex3fv calls - Use counter to call glVertex4fv for PGXP vertices only
Diffstat (limited to 'libpcsxcore/gte.c')
-rwxr-xr-xlibpcsxcore/gte.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libpcsxcore/gte.c b/libpcsxcore/gte.c
index 2d02032a..abe3c205 100755
--- a/libpcsxcore/gte.c
+++ b/libpcsxcore/gte.c
@@ -497,11 +497,11 @@ int docop2(int op) {
SX2 = Lm_G1(F((s64) OFX + ((s64) IR1 * h_over_sz3) * (Config.Widescreen ? 0.75 : 1)) >> 16);
SY2 = Lm_G2(F((s64) OFY + ((s64) IR2 * h_over_sz3)) >> 16);
- PGXP_pushSXYZ2s(Lm_G1_ia((s64)OFX + (s64)(IR1 * h_over_sz3) * (Config.Widescreen ? 0.75 : 1)),
- Lm_G2_ia((s64)OFY + (s64)(IR2 * h_over_sz3)),
- SZ3, SXY2);
+ //PGXP_pushSXYZ2s(Lm_G1_ia((s64)OFX + (s64)(IR1 * h_over_sz3) * (Config.Widescreen ? 0.75 : 1)),
+ // Lm_G2_ia((s64)OFY + (s64)(IR2 * h_over_sz3)),
+ // SZ3, SXY2);
- //PGXP_RTPS(0, SXY2);
+ PGXP_RTPS(0, SXY2);
MAC0 = F((s64) DQB + ((s64) DQA * h_over_sz3));
IR0 = Lm_H(m_mac0, 1);
@@ -889,11 +889,11 @@ int docop2(int op) {
SX2 = Lm_G1(F((s64) OFX + ((s64) IR1 * h_over_sz3) * (Config.Widescreen ? 0.75 : 1)) >> 16);
SY2 = Lm_G2(F((s64) OFY + ((s64) IR2 * h_over_sz3)) >> 16);
- PGXP_pushSXYZ2s(Lm_G1_ia((s64)OFX + (s64)(IR1 * h_over_sz3) * (Config.Widescreen ? 0.75 : 1)),
- Lm_G2_ia((s64)OFY + (s64)(IR2 * h_over_sz3)),
- SZ3, SXY2);
+ //PGXP_pushSXYZ2s(Lm_G1_ia((s64)OFX + (s64)(IR1 * h_over_sz3) * (Config.Widescreen ? 0.75 : 1)),
+ // Lm_G2_ia((s64)OFY + (s64)(IR2 * h_over_sz3)),
+ // SZ3, SXY2);
- //PGXP_RTPS(v, SXY2);
+ PGXP_RTPS(v, SXY2);
}
MAC0 = F((s64) DQB + ((s64) DQA * h_over_sz3));