summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/gpu.c
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-03-25 16:25:15 +0000
committeriCatButler <i.am.catbutler@gmail.com>2016-03-25 16:25:15 +0000
commit7767ea4acbae995cd8e6302bdb7c97e89748dfd8 (patch)
treeb4a3025b703f8f3f383626aa5a651b2954c3a512 /plugins/peopsxgl/gpu.c
parent106f6594c9e2ad601deb7ad9bdf5eab8a568c01b (diff)
downloadpcsxr-7767ea4acbae995cd8e6302bdb7c97e89748dfd8.tar.gz
Initial upload of PGXP.
Diffstat (limited to 'plugins/peopsxgl/gpu.c')
-rwxr-xr-xplugins/peopsxgl/gpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c
index d5af3330..65e074d5 100755
--- a/plugins/peopsxgl/gpu.c
+++ b/plugins/peopsxgl/gpu.c
@@ -48,6 +48,7 @@ static int iOldMode=0;
#include "fps.h"
#include "key.h"
#include "gte_accuracy.h"
+#include "PGXP_gpu.h"
#ifdef _WINDOWS
#include "resource.h"
#include "ssave.h"
@@ -3145,7 +3146,11 @@ long CALLBACK GPUdmaChain(uint32_t *baseAddrL, uint32_t addr)
dmaMem=addr+4;
- if(count>0) GPUwriteDataMem(&baseAddrL[dmaMem>>2],count);
+ if (count > 0)
+ {
+ PGXP_SetAddress(dmaMem >> 2);
+ GPUwriteDataMem(&baseAddrL[dmaMem >> 2], count);
+ }
addr = baseAddrL[addr>>2]&0xffffff;
}