diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2016-04-27 12:18:13 +0100 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2016-04-27 12:18:13 +0100 |
| commit | 153c8eb4997d21d3b2965cf38d4348f05c29860f (patch) | |
| tree | 994a8995a888c47eacb6d650f8c28c0c631d3c50 /libpcsxcore/gpu.c | |
| parent | 580df75296286b65812afdac64d82054279fb235 (diff) | |
| download | pcsxr-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-x | libpcsxcore/gpu.c | 2 |
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 |
