summaryrefslogtreecommitdiff
path: root/libpcsxcore/gpu.c
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-04-27 12:18:13 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-04-27 12:18:13 +0100
commit153c8eb4997d21d3b2965cf38d4348f05c29860f (patch)
tree994a8995a888c47eacb6d650f8c28c0c631d3c50 /libpcsxcore/gpu.c
parent580df75296286b65812afdac64d82054279fb235 (diff)
downloadpcsxr-153c8eb4997d21d3b2965cf38d4348f05c29860f.tar.gz
Perspective correct texturing
- replace calls to glOrtho with new matrix (z value becomes w) - store w value for each vertex - if any vertex does not have a w value set whole polygon to 1.0 - Reset vertex between draw calls to prevent stale w values persisting - validate PGXP values using stored copy of original (allow greater variance) - properly convert addresses before passing to plugin - rework memory to use a single pool with offsets - Implement floating point RTPS/RTPT transform, currently disabled.
Diffstat (limited to 'libpcsxcore/gpu.c')
-rwxr-xr-xlibpcsxcore/gpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/gpu.c b/libpcsxcore/gpu.c
index 61a7b3dc..4ab01166 100755
--- a/libpcsxcore/gpu.c
+++ b/libpcsxcore/gpu.c
@@ -143,7 +143,7 @@ void psxDma2(u32 madr, u32 bcr, u32 chcr) { // GPU
#endif
break;
}
- GPU_pgxpMemory(madr, PGXP_GetMem());
+ GPU_pgxpMemory(PGXP_ConvertAddress(madr), PGXP_GetMem());
GPU_writeDataMem(ptr, size);
#if 0