From b30fba56ad7291663092f9d99cda3e607ca76aad Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 7 Oct 2023 01:01:44 +0300 Subject: [PATCH] gpulib: forgot to mark fb dirty --- plugins/gpulib/gpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index 30ded94d..271c89c9 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -488,9 +488,11 @@ static void finish_vram_transfer(int is_read) { if (is_read) gpu.status &= ~PSX_GPU_STATUS_IMG; - else + else { + gpu.state.fb_dirty = 1; renderer_update_caches(gpu.dma_start.x, gpu.dma_start.y, gpu.dma_start.w, gpu.dma_start.h, 0); + } } static void do_vram_copy(const uint32_t *params) @@ -639,6 +641,7 @@ static noinline int do_cmd_buffer(uint32_t *data, int count) break; } do_vram_copy(data + pos + 1); + vram_dirty = 1; pos += 4; continue; } -- 2.39.5