aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpulib
diff options
context:
space:
mode:
authornotaz2012-07-12 01:19:46 +0300
committernotaz2012-07-18 23:56:53 +0300
commit3d47ef173590f99d22b33e2c6261e068b2f66871 (patch)
tree87b65dba6cd0d9c92288cf4def44d71e2f9b2b69 /plugins/gpulib
parentf3a78e7ea779e6187d571056e0c97823b09a7bb0 (diff)
downloadpcsx_rearmed-3d47ef173590f99d22b33e2c6261e068b2f66871.tar.gz
pcsx_rearmed-3d47ef173590f99d22b33e2c6261e068b2f66871.tar.bz2
pcsx_rearmed-3d47ef173590f99d22b33e2c6261e068b2f66871.zip
gpulib: drop prim buffer on stateload
obscure bugs otherwise
Diffstat (limited to 'plugins/gpulib')
-rw-r--r--plugins/gpulib/gpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c
index aefd53b..ea17237 100644
--- a/plugins/gpulib/gpu.c
+++ b/plugins/gpulib/gpu.c
@@ -581,6 +581,7 @@ long GPUfreeze(uint32_t type, struct GPUFreeze *freeze)
memcpy(gpu.regs, freeze->ulControl, sizeof(gpu.regs));
memcpy(gpu.ex_regs, freeze->ulControl + 0xe0, sizeof(gpu.ex_regs));
gpu.status.reg = freeze->ulStatus;
+ gpu.cmd_len = 0;
for (i = 8; i > 0; i--) {
gpu.regs[i] ^= 1; // avoid reg change detection
GPUwriteStatus((i << 24) | (gpu.regs[i] ^ 1));