From 3d47ef173590f99d22b33e2c6261e068b2f66871 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 12 Jul 2012 01:19:46 +0300 Subject: [PATCH] gpulib: drop prim buffer on stateload obscure bugs otherwise --- plugins/gpulib/gpu.c | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.39.5