From 3f80d0b7d812b6b35745f527de494f025cd84a5a Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 6 Jun 2021 23:08:18 +0300 Subject: [PATCH] rsx: Fix surface deduplication crash --- rpcs3/Emu/RSX/Common/surface_store.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/surface_store.h b/rpcs3/Emu/RSX/Common/surface_store.h index 5e942bcc61..723e76532e 100644 --- a/rpcs3/Emu/RSX/Common/surface_store.h +++ b/rpcs3/Emu/RSX/Common/surface_store.h @@ -968,7 +968,7 @@ namespace rsx for (auto it = sections.crbegin(); it != sections.crend(); ++it) { - if (it->base_address < range.start) + if (!it->surface->get_memory_range().inside(range)) { continue; }