X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpulib%2Fgpu.c;fp=plugins%2Fgpulib%2Fgpu.c;h=ea172376fdb0719069656f616c156fd8b59e4b42;hp=aefd53b60acbbcc10fe16596ce96370172c7d7be;hb=3d47ef173590f99d22b33e2c6261e068b2f66871;hpb=f3a78e7ea779e6187d571056e0c97823b09a7bb0 diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index aefd53b6..ea172376 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));