From 2c07db6dd5cd4f3b1e73ba0060f84d704db27b00 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 18 Sep 2019 15:14:31 +1000 Subject: [PATCH] GPU: Flush rendering before VRAM reads --- src/pse/gpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pse/gpu.cpp b/src/pse/gpu.cpp index c66dd62da..bafdccf5f 100644 --- a/src/pse/gpu.cpp +++ b/src/pse/gpu.cpp @@ -669,6 +669,9 @@ bool GPU::HandleCopyRectangleVRAMToCPUCommand() return true; } + // all rendering should be done first... + FlushRender(); + // TODO: A better way of doing this.. std::vector temp(num_words); ReadVRAM(src_x, src_y, width, height, temp.data());