notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3a78e7
)
gpulib: drop prim buffer on stateload
author
notaz
<notasas@gmail.com>
Wed, 11 Jul 2012 22:19:46 +0000
(
01:19
+0300)
committer
notaz
<notasas@gmail.com>
Wed, 18 Jul 2012 20:56:53 +0000
(23:56 +0300)
obscure bugs otherwise
plugins/gpulib/gpu.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/gpulib/gpu.c
b/plugins/gpulib/gpu.c
index
aefd53b
..
ea17237
100644
(file)
--- 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));